jmce - 1_02

jmce.sim.terminal
Class SwingCRT

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.terminal.AbstractCRT
          extended by jmce.sim.terminal.SwingCRT
All Implemented Interfaces:
Hardware, MemoryWriteListener, SwingHardware, CRT

public class SwingCRT
extends AbstractCRT
implements SwingHardware

Swing implementation of CRT.

Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.terminal.AbstractCRT
attMemory, charMemory, lineChanged, numCol, numRow, screenChanged, terminal
 
Constructor Summary
SwingCRT()
           
 
Method Summary
 void destroy()
          Destroy the device.
 java.awt.Color getColor()
           
 java.awt.Component getComponent()
           
 void init(Hardware parent)
          Initialize the hardware.
 void setColor(java.awt.Color color)
           
 
Methods inherited from class jmce.sim.terminal.AbstractCRT
changedLine, getAtt, getChar, writeMemory
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Hardware
addHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Constructor Detail

SwingCRT

public SwingCRT()
Method Detail

setColor

public void setColor(java.awt.Color color)

getColor

public java.awt.Color getColor()

destroy

public void destroy()
             throws SIMException
Description copied from interface: Hardware
Destroy the device. This method can be called only one time

Specified by:
destroy in interface Hardware
Overrides:
destroy in class AbstractHardware
Throws:
SIMException

init

public void init(Hardware parent)
          throws SIMException
Description copied from interface: Hardware
Initialize the hardware. This method must be called before any use of the interface. Only set ... / get ... method are allowed to be called before the intialization.

Specified by:
init in interface Hardware
Overrides:
init in class AbstractCRT
Parameters:
parent - Parent of this hardware.
Throws:
SIMException

getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in interface SwingHardware

jmce - 1_02