|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.imaging.ImageViewer
ImageViewer - a SimObject to display an Image in an individual JFrame. Signals are expected to be ImageSignals.
Nested Class Summary | |
class |
ImageViewer.JImageCanvas
|
Field Summary | |
protected javax.swing.JComponent |
canvas
|
protected javax.swing.JFileChooser |
fileChooser
|
protected javax.swing.JFrame |
frame
|
protected java.awt.Image |
image
|
protected Port |
port_A
|
protected javax.swing.JScrollPane |
scroller
|
protected javax.swing.JLabel |
statusLabel
|
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
ImageViewer()
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
void |
createFrame()
|
void |
doChangeName()
|
void |
doClose()
|
void |
doOpenImage()
|
void |
doPrint()
|
void |
doSaveAs()
|
void |
doShowAbout()
|
void |
doShowUsage()
|
void |
doZoom11()
|
void |
doZoom21()
|
void |
doZoom41()
|
void |
evaluate(java.lang.Object arg)
evaluate(): called by the simulation engine on all events that concern this object. |
java.awt.Component |
getPropertySheet()
return a reference to the 'property sheet' or configuration window for this SimObject. |
boolean |
initialize(java.lang.String s)
initialize a ImageViewer from a String that contains the integer version id of this gate and its propagation delay (in seconds), e.g. |
void |
mousePressed(java.awt.event.MouseEvent me)
react to a MouseEvent. |
void |
NOTYET()
|
void |
showImage()
|
java.lang.String |
toString()
toString() - the usual info method |
void |
updateImage(java.awt.Image tmp)
|
void |
write(java.io.PrintWriter ps)
|
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, elaborate, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hades.simulator.Simulatable |
elaborate, message |
Field Detail |
protected Port port_A
protected java.awt.Image image
protected javax.swing.JFrame frame
protected javax.swing.JComponent canvas
protected javax.swing.JLabel statusLabel
protected javax.swing.JScrollPane scroller
protected javax.swing.JFileChooser fileChooser
Constructor Detail |
public ImageViewer()
Method Detail |
public void evaluate(java.lang.Object arg)
Simulatable
evaluate
in interface Simulatable
evaluate
in class SimObject
arg
- an arbitrary object argumentpublic void updateImage(java.awt.Image tmp)
public void showImage()
public void createFrame()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public void doOpenImage()
public void doPrint()
public void doClose()
public void doZoom11()
public void doZoom21()
public void doZoom41()
public void NOTYET()
public void doChangeName()
public void doSaveAs()
public void doShowAbout()
public void doShowUsage()
public void mousePressed(java.awt.event.MouseEvent me)
SimObject
Note that the HADES schematic editor will also deliver jfig.canvas.FigCanvasEvent object, which also include the world-coordinates of the Event.
mousePressed
in class SimObject
public void configure()
SimObject
configure
in class SimObject
public java.awt.Component getPropertySheet()
SimObject
getPropertySheet
in class SimObject
public boolean initialize(java.lang.String s)
initialize
in class SimObject
public void write(java.io.PrintWriter ps)
write
in class SimObject
public java.lang.String toString()
toString
in class SimObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |