| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--java.awt.Component
        |
        +--de.mud.terminal.VDU
              |
              +--de.mud.terminal.vt320
Implementation of a VT terminal emulation plus ANSI compatible.
Maintainer: Marcus Meißner
| Inner classes inherited from class java.awt.Component | 
| java.awt.Component.AccessibleAWTComponent | 
| Field Summary | |
| static java.lang.String | IDThe current version id tag. | 
| Fields inherited from class de.mud.terminal.VDU | 
| BOLD, COLOR, COLOR_0, COLOR_1, COLOR_2, COLOR_3, COLOR_4, COLOR_5, COLOR_6, COLOR_7, COLOR_BG, COLOR_BOLD, COLOR_FG, COLOR_INVERT, debug, INVERT, LOW, NORMAL, RESIZE_FONT, RESIZE_NONE, RESIZE_SCREEN, SCROLL_DOWN, SCROLL_UP, UNDERLINE | 
| Fields inherited from class java.awt.Component | 
| BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface java.awt.image.ImageObserver | 
| ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
| vt320()Create a new terminal emulation with a specific font. | |
| vt320(java.awt.Font font)Create a new terminal emulation with a specific font. | |
| vt320(int width,
      int height)Create a new terminal emulation with specific width and height. | |
| vt320(int width,
      int height,
      java.awt.Font font)Create a new vt320 terminal and intialize it with useful settings. | |
| Method Summary | |
| protected  void | beep()Play the beep sound ... | 
|  java.lang.String | getTerminalID()Get the terminal id used to identify this terminal. | 
|  void | keyPressed(java.awt.event.KeyEvent evt)main keytyping event handler... | 
|  void | keyReleased(java.awt.event.KeyEvent evt)Not used. | 
|  void | keyTyped(java.awt.event.KeyEvent evt)Handle key Typed events for the terminal, this will get all normal key types, but no shift/alt/control/numlock. | 
|  char | map_cp850_unicode(char x) | 
|  void | putString(java.lang.String s)Put string at current cursor position. | 
|  void | reset() | 
| protected  void | sendTelnetCommand(byte cmd) | 
|  void | setAnswerBack(java.lang.String ab) | 
|  void | setIBMCharset(boolean ibm)Enable the usage of the IBM character set used by some BBS's. | 
|  void | setKeyCodes(java.util.Properties codes)Override the standard key codes used by the terminal emulation. | 
|  void | setLocalEcho(boolean echo)Enable or disable the local echo property of the terminal. | 
|  void | setTerminalID(java.lang.String terminalID)Set the terminal id used to identify this terminal. | 
|  void | setVMS(boolean vms)Enable the VMS mode of the terminal to handle some things differently for VMS hosts. | 
| protected abstract  void | write(byte[] b)Write an answer back to the remote host. | 
| Methods inherited from class java.awt.Component | 
| action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, processComponentEvent, processEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String ID
$Id: vt320.java,v 2.79 2002/02/17 20:37:37 marcus Exp $
| Constructor Detail | 
public vt320(int width,
             int height,
             java.awt.Font font)
width - the width of the character screenheight - the amount of rows on screenfont - the font to be used for rendering characters
public vt320(int width,
             int height)
width - the width of the character screenheight - the amount of rows on screenpublic vt320(java.awt.Font font)
font - the font to be used for rendering characterspublic vt320()
| Method Detail | 
protected abstract void write(byte[] b)
b - the array of bytes to be sentprotected void beep()
public void putString(java.lang.String s)
s - the stringprotected void sendTelnetCommand(byte cmd)
public void setLocalEcho(boolean echo)
echo - true if the terminal should echo locallypublic void setVMS(boolean vms)
vms - true for vms mode, false for normal modepublic void setIBMCharset(boolean ibm)
ibm - true to use the ibm character setpublic void setKeyCodes(java.util.Properties codes)
codes - a properties object containing key code definitionspublic void setTerminalID(java.lang.String terminalID)
terminalID - the id stringpublic void setAnswerBack(java.lang.String ab)
public java.lang.String getTerminalID()
terminalID - the id stringpublic void keyPressed(java.awt.event.KeyEvent evt)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent evt)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent evt)
keyTyped in interface java.awt.event.KeyListenerevt - the eventpublic char map_cp850_unicode(char x)
public void reset()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||