|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nwoods.jgo.layout.JGoNetworkNode
JGoNetworkNode provides an abstract view of a JGoObject as a node in a network (graph) of nodes and directed links. Nodes can also be created which do not correspond to any top-level JGoObjects in a JGoDocument. The JGoNetworkNode class provides a framework for manipulating the state of nodes without corrupting the JGoDocument objects.
JGoNetwork,
JGoNetworkLink| Constructor Summary | |
JGoNetworkNode()
Contstructs a JGoNetworkNode with myCenter of (0,0) and all other values as null. |
|
JGoNetworkNode(JGoNetwork network,
JGoObject object)
Constructs a JGoNetworkNode with myNetwork of network and myGoObject of object. |
|
| Method Summary | |
void |
addPredLink(JGoNetworkLink pPredNetworkLink)
Adds a JGoNetworkLink to the list predecessors (i.e., the link will be to this node). |
void |
addSuccLink(JGoNetworkLink pSuccNetworkLink)
Adds a JGoNetworkLink to the list successors (i.e., the link will be from this node). |
void |
commitPosition()
Moves the corresponding JGoObject to the center point of the node in the document. |
void |
deletePredLink(JGoNetworkLink pPredNetworkLink)
Deletes a JGoNetworkLink from the list of predecessors (i.e., the link was to this node). |
void |
deleteSuccLink(JGoNetworkLink pSuccNetworkLink)
Deletes a JGoNetworkLink from the list of successors (i.e., the link was from this node). |
java.awt.Point |
getCenter()
Returns the center point of the node in the document. |
JGoObject |
getJGoObject()
Returns the JGoObject to which the node corresponds. |
JGoNetwork |
getNetwork()
Gets the JGoNetwork that this JGoNetworkNode is part of. |
JGoAutoLayoutNodeData |
getNodeData()
Gets the node's layout-specific nodeData. |
java.lang.Object |
getNodeUserData()
Gets nodeUserData. |
JGoNetworkLink[] |
getPredLinksArray()
|
java.util.LinkedList |
getPredLinksList()
Returns the list of predecessor links (i.e., the links are to this node). |
JGoNetworkLink[] |
getSuccLinksArray()
|
java.util.LinkedList |
getSuccLinksList()
Returns the list of successor links (i.e., the links are from this node). |
void |
setCenter(int newx,
int newy)
Sets the center point of the node in the document. |
void |
setCenter(java.awt.Point newCenter)
Sets the center point of the node in the document. |
void |
setJGoObject(JGoObject obj)
Change the JGoObject that this JGoNetworkNode is associated with. |
void |
setNetwork(JGoNetwork net)
Set the "back-pointer" to the owning JGoNetwork. |
void |
setNodeData(JGoAutoLayoutNodeData data)
Sets the node's layout-specific nodeData to data. |
void |
setNodeUserData(java.lang.Object obj)
Sets nodeUserData to obj. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JGoNetworkNode()
public JGoNetworkNode(JGoNetwork network,
JGoObject object)
network - the JGoNetwork to which the node will belongobject - the JGoObject to which the node will correspond| Method Detail |
public JGoNetwork getNetwork()
public void setNetwork(JGoNetwork net)
public JGoObject getJGoObject()
public void setJGoObject(JGoObject obj)
public java.util.LinkedList getPredLinksList()
public JGoNetworkLink[] getPredLinksArray()
public void addPredLink(JGoNetworkLink pPredNetworkLink)
public void deletePredLink(JGoNetworkLink pPredNetworkLink)
public java.util.LinkedList getSuccLinksList()
public JGoNetworkLink[] getSuccLinksArray()
public void addSuccLink(JGoNetworkLink pSuccNetworkLink)
public void deleteSuccLink(JGoNetworkLink pSuccNetworkLink)
public java.awt.Point getCenter()
setCenter(java.awt.Point),
commitPosition()public void setCenter(java.awt.Point newCenter)
getCenter(),
commitPosition()
public void setCenter(int newx,
int newy)
getCenter(),
commitPosition()public void commitPosition()
getCenter(),
setCenter(java.awt.Point)public JGoAutoLayoutNodeData getNodeData()
public void setNodeData(JGoAutoLayoutNodeData data)
public java.lang.Object getNodeUserData()
public void setNodeUserData(java.lang.Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||