added applet mode, terminal window
[fleet.git] / src / de / mud / telnet / display / Terminal.java
1 package de.mud.telnet.display;
2 /* "In case you would like to use the packages as libraries please
3  *  apply the GNU Library General Public License as documented in the
4  *  file COPYING.LIB." (from Telnet/Documentation/index.html)
5  */
6 /*
7  * Terminal -- Terminal emulation (abstract class)
8  * --
9  * $Id: Terminal.java,v 1.1.1.1 1997/03/05 13:35:16 leo Exp $
10  * $timestamp: Wed Mar  5 11:27:13 1997 by Matthias L. Jugel :$
11  *
12  * This file is part of "The Java Telnet Applet".
13  *
14  * This is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 2, or (at your option)
17  * any later version.
18  *
19  * "The Java Telnet Applet" is distributed in the hope that it will be 
20  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU General Public License for more details.
23  * 
24  * You should have received a copy of the GNU General Public License
25  * along with this software; see the file COPYING.  If not, write to the
26  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
27  * Boston, MA 02111-1307, USA.
28  */
29
30 import java.awt.Panel;
31 import java.awt.Dimension;
32
33 /**
34  * Terminal is an abstract emulation class.
35  * It contains a character display.
36  *
37  * @version $Id: Terminal.java,v 1.1.1.1 1997/03/05 13:35:16 leo Exp $
38  * @author  Matthias L. Jugel, Marcus Meißner
39  */
40 public abstract class Terminal extends Panel
41 {
42         /**
43          * Get the specific parameter info for the emulation.
44          * @see java.applet.Applet
45          */
46         public abstract String[][] getParameterInfo();
47   
48         /**
49          * Put a character on the screen. The method has to see if it is
50          * a special character that needs to be handles special.
51          * @param c the character
52          * @see #putString
53          */
54         public abstract void putChar(char c);
55         
56         /**
57          * Put a character on the screen. The method has to parse the string
58          * may handle special characters.
59          * @param s the string
60          * @see #putString
61          */
62         public abstract void putString(String s);
63
64         /**
65          * Return the current size of the terminal in characters.
66          */
67         public abstract Dimension getSize();
68   
69         /**
70          * Return actual terminal type identifier.
71          */
72         public abstract String getTerminalType();
73 }