|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hades.simulator.SimObject hades.models.FigObject
FigObject: a passive SimObject used to include FIG drawings into design schematics.
Field Summary | |
(package private) java.lang.String |
figresourcename
|
(package private) FigWrapper |
figwrapper
|
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
FigObject()
Construct an empty FigObject. |
Method Summary | |
void |
configure()
configure: display a dialog that allows the user to change the name and the fig resource name of this FigObject. |
void |
constructDynamicSymbol()
construct a Symbol for this FigObject. |
void |
elaborate(java.lang.Object arg)
elaborate: do nothing because this is a passive SimObject. |
java.lang.String[] |
getExternalResources()
return a String[] array of length 1 with our FIG file resource name |
java.lang.String |
getFigresourcename()
return the name of our FIG file/resource. |
FigWrapper |
getFigWrapper()
return a reference to our FigWrapper object with the FIG members |
boolean |
initialize(java.lang.String s)
initialize a FigObject from a String. |
boolean |
needsDynamicSymbol()
return true, because we need a dynamically create symbol |
boolean |
needsExternalResources()
we use one external resource: the FIG file to initialize us. |
void |
setFigresourcename(java.lang.String s)
set a new FIG file/resource called "s", then re-initialize this FigObject to load the new FIG file. |
java.lang.String |
toString()
toString: generate a text description for this SimObject. |
void |
write(java.io.PrintWriter ps)
write the versionId and the mangled unicode-escaped figresourcename. |
Methods inherited from class hades.simulator.SimObject |
copy, evaluate, getBindkey, getClassLoader, getDebug, getEditor, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, mousePressed, 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 |
Field Detail |
FigWrapper figwrapper
java.lang.String figresourcename
Constructor Detail |
public FigObject()
Method Detail |
public java.lang.String getFigresourcename()
public void setFigresourcename(java.lang.String s)
public boolean needsExternalResources()
needsExternalResources
in class SimObject
public java.lang.String[] getExternalResources()
getExternalResources
in class SimObject
public boolean needsDynamicSymbol()
needsDynamicSymbol
in class SimObject
public void constructDynamicSymbol()
constructDynamicSymbol
in class SimObject
public boolean initialize(java.lang.String s)
1002 /hades/examples/tutorial/welcome.fig
initialize
in class SimObject
public void write(java.io.PrintWriter ps)
write
in class SimObject
public void configure()
configure
in class SimObject
public FigWrapper getFigWrapper()
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class SimObject
public java.lang.String toString()
SimObject
toString
in class SimObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |