|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.dat.cx.CxComponent
|
+--com.dat.cx.CxWire
CxWire provides semantics for a wire component which connects two port components.
| Fields inherited from class com.dat.cx.CxComponent |
compactDisplay, noHatDisplay, standardDisplay |
| Constructor Summary | |
CxWire()
Default Constructor |
|
CxWire(CxPort fromPort,
CxPort toPort)
Constructor |
|
| Method Summary | |
void |
activate()
Activate the wire. |
boolean |
connectsTo(CxComponent component)
Determines if a component is either the from or to port. |
boolean |
connectsToPort(CxComponent component)
Determines if a component is either the from or to port. |
void |
deactivate()
Deactivate the wire. |
XSet |
export(XSet doc,
CxProject project)
Export the definition of this wire. |
void |
exportInfo(com.dat.cx.exec.CxExecComponentInfo info)
Export the definition of the component into a java serializable object. |
com.dat.cx.studio.CxCompDisplay |
getDisplay()
Get the display peer for this wire. |
com.dat.cx.studio.CxInternalFrame |
getEditFrame(com.dat.cx.studio.CxStudio studio)
Get at edit frame for editing this component. |
CxComponent |
getFrom()
Get the from port |
java.lang.String |
getIcon()
Get the icon file name for this component |
CxComponent |
getTo()
Get the to port |
void |
importInfo(com.dat.cx.exec.CxExecComponentInfo info)
Import the definition of the component from a java serializable object. |
java.util.Vector |
importSpec(XSet spec)
Import specification from an XML element |
void |
importTemplate(CxComponent fromComp,
boolean copy,
boolean inherit,
boolean inverse)
Import the definition of a wire from another wire. |
boolean |
isWire()
Determines if the component is a wire |
com.dat.cx.exec.CxExecComponentInfo |
makeInfo()
Make an empty serializable object to hold the components definition. |
void |
setFrom(CxComponent from)
Set the from port |
void |
setTo(CxComponent to)
Set the to port |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CxWire()
public CxWire(CxPort fromPort,
CxPort toPort)
fromPort - the from porttoPort - the to port| Method Detail |
public boolean isWire()
isWire in class CxComponentpublic com.dat.cx.studio.CxInternalFrame getEditFrame(com.dat.cx.studio.CxStudio studio)
getEditFrame in class CxComponentpublic com.dat.cx.studio.CxCompDisplay getDisplay()
getDisplay in class CxComponent
public void importTemplate(CxComponent fromComp,
boolean copy,
boolean inherit,
boolean inverse)
importTemplate in class CxComponentfrom - the wire from which to import a definitioncopy - indicate that this is a copy 'vs' extendsinherit - indicate that the definition is inherited as part of an extendsinverse - (not used)public java.util.Vector importSpec(XSet spec)
importSpec in class CxComponentspec - the xml element containing the specification
public XSet export(XSet doc,
CxProject project)
export in class CxComponentdoc - the XSet docuement being constructed. The definition is added to this document.public void activate()
activate in class CxComponentpublic void deactivate()
deactivate in class CxComponentpublic boolean connectsTo(CxComponent component)
component - component to use in the testpublic boolean connectsToPort(CxComponent component)
component - component to use in the testpublic CxComponent getFrom()
public void setFrom(CxComponent from)
from - the new from portpublic CxComponent getTo()
public void setTo(CxComponent to)
from - the new from portpublic java.lang.String getIcon()
getIcon in class CxComponentpublic com.dat.cx.exec.CxExecComponentInfo makeInfo()
CxComponentmakeInfo in class CxComponentcom.dat.cx.CxComponentpublic void exportInfo(com.dat.cx.exec.CxExecComponentInfo info)
CxComponentexportInfo in class CxComponentcom.dat.cx.CxComponentinfo - the serializable object in which the definition of this component is to be stored.public void importInfo(com.dat.cx.exec.CxExecComponentInfo info)
CxComponentimportInfo in class CxComponentcom.dat.cx.CxComponentinfo - the serializable object in which the definition of this component is stored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||