|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthades.simulator.SimObject
hades.models.imaging.ImageSource
ImageSource - a SimObject to load Images from files. Signals are expected to be ImageSignals.
| Field Summary | |
protected java.awt.Image |
image
|
protected java.lang.String |
imageResourceName
|
protected Port |
port_Y
|
protected double |
t_delay
|
| Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
| Constructor Summary | |
ImageSource()
|
|
| Method Summary | |
void |
applyValuesHook()
|
void |
assign(java.lang.String name,
double simTime)
Load the image specified by 'name' (a filename or URL) right now, then schedule the new image to our output port at the given simulation time. |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
void |
elaborate(java.lang.Object arg)
elaborate(): This method is called by the simulation engine to initialize the simulation object. |
void |
evaluate(java.lang.Object arg)
don't call this. |
java.lang.String[] |
getExternalResources()
return a String[] array of length 1 with our Image file/resource name |
java.awt.Image |
getImage()
|
java.lang.String |
getImageResourceName()
|
java.lang.String[] |
getPropertySheetFieldNames()
|
boolean |
initialize(java.lang.String s)
initialize a ImageSource from a String that contains the integer version id of this gate and its propagation delay (in seconds), e.g. |
java.awt.Image |
loadImage(java.lang.String name)
|
void |
mousePressed(java.awt.event.MouseEvent me)
react to a MouseEvent. |
boolean |
needsExternalResources()
we use one external resource: the Image file/resource |
void |
scheduleImage()
|
void |
scheduleImage(double time)
|
void |
selectFile()
|
void |
setImageResourceName(java.lang.String s)
|
java.lang.String |
toString()
toString() - the usual info method |
void |
write(java.io.PrintWriter ps)
|
| Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, needsDynamicSymbol, 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 |
message |
| Field Detail |
protected Port port_Y
protected java.awt.Image image
protected java.lang.String imageResourceName
protected double t_delay
| Constructor Detail |
public ImageSource()
| Method Detail |
public java.awt.Image getImage()
public java.lang.String getImageResourceName()
public void setImageResourceName(java.lang.String s)
public boolean needsExternalResources()
needsExternalResources in class SimObjectpublic java.lang.String[] getExternalResources()
getExternalResources in class SimObjectpublic void elaborate(java.lang.Object arg)
Simulatable
elaborate in interface Simulatableelaborate in class SimObjectpublic void evaluate(java.lang.Object arg)
evaluate in interface Simulatableevaluate in class SimObjectarg - an arbitrary object argumentpublic void selectFile()
public void assign(java.lang.String name,
double simTime)
assign in interface Assignablepublic void scheduleImage()
public void scheduleImage(double time)
public void mousePressed(java.awt.event.MouseEvent me)
SimObjectNote that the HADES schematic editor will also deliver jfig.canvas.FigCanvasEvent object, which also include the world-coordinates of the Event.
mousePressed in class SimObjectpublic void configure()
SimObject
configure in class SimObjectpublic java.lang.String[] getPropertySheetFieldNames()
public void applyValuesHook()
public boolean initialize(java.lang.String s)
initialize in class SimObjectpublic java.awt.Image loadImage(java.lang.String name)
public void write(java.io.PrintWriter ps)
write in class SimObjectpublic java.lang.String toString()
toString in class SimObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||