|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--linkData
Details of all the links in the system and details of the link currently being adjusted.
Constructor Summary | |
linkData(javax.swing.JPanel panel)
Constructor that takes a panel to be every link's parent. |
Method Summary | |
singleLink |
getLink(operator op,
javax.swing.JLabel connection)
Returns the link that terminates at the specified operator/connection. |
java.util.ArrayList |
getLinks()
Returns an ArrayList containing all the links in the system. |
javax.swing.JPanel |
getPanel()
|
boolean |
linkExists(operator op,
javax.swing.JLabel connection)
Returns true if there is a link in the system that terminates at the specified operator/connection. |
void |
loadLink(java.io.StreamTokenizer tokenizer,
java.util.ArrayList names,
java.util.ArrayList operators)
|
void |
removeLink(operator toOp,
javax.swing.JLabel toCon)
Removes a link described by the terminating operator and connection. |
void |
removeLink(singleLink link)
Removes a link both graphically from the UI and internally from the image routing between operators. |
java.lang.String |
saveLinks()
Returns a String representing all the links in the system. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public linkData(javax.swing.JPanel panel)
panel
- the parent panel of the linksMethod Detail |
public javax.swing.JPanel getPanel()
public java.lang.String saveLinks()
public void loadLink(java.io.StreamTokenizer tokenizer, java.util.ArrayList names, java.util.ArrayList operators) throws java.io.IOException
public void removeLink(operator toOp, javax.swing.JLabel toCon)
toOp
- the operator that the link terminates attoCon
- the connection (IN1 or IN2) that the link terminates at
(this uniquely identifies the link to be removed as only one link can
terminate at a connection)public void removeLink(singleLink link)
link
- the link to be removedpublic singleLink getLink(operator op, javax.swing.JLabel connection)
op
- the operator where the link terminatesconnection
- the connection where the link terminatespublic java.util.ArrayList getLinks()
public boolean linkExists(operator op, javax.swing.JLabel connection)
op
- the operator being testedconnection
- the connection being tested
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |