|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--utilities.GraphNode | +--utilities.GraphEdge
GraphEdge
This is a superclass for the generic purpose of drawing edges in a graph. It works with GraphNode. This is a generalization of the taems Interrelationship.
Constructor Summary | |
GraphEdge()
blank constructor |
|
GraphEdge(GraphNode nodeFrom,
GraphNode nodeTo)
labelless constructor |
|
GraphEdge(java.lang.String l)
constructor that sets only the label |
|
GraphEdge(java.lang.String l,
GraphNode nodeFrom,
GraphNode nodeTo)
Default constructor |
Method Summary | |
java.lang.Object |
clone()
Clone |
void |
excise()
Detaches the node from the structure its in. |
javax.swing.JPanel |
getDefaultPanel()
Drawing stuff * |
boolean |
getDrawArrows()
|
GraphNode |
getFrom()
attachers |
GraphNode |
getTo()
|
boolean |
matches(java.lang.Object o)
Determines if an object matches this one. |
void |
setDrawArrows(boolean b)
|
void |
setFrom(GraphNode n)
|
void |
setTo(GraphNode n)
|
Methods inherited from class utilities.GraphNode |
addEdge, addEdge, compareTo, equals, getAttribute, getAttributes, getInEdges, getLabel, getOutEdges, getUndirEdges, hasAttribute, hasInEdges, hasOutEdges, hasUndirEdges, numInEdges, numOutEdges, numUndirEdges, removeEdge, removeEdge, saveCfg, setAttribute, setLabel, toString, updateCfg |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GraphEdge(java.lang.String l, GraphNode nodeFrom, GraphNode nodeTo)
l
- The edge's labelnodeFrom
- The node the edge originates from (may be null)nodeTo
- The node the edge leads to (may be null)public GraphEdge(GraphNode nodeFrom, GraphNode nodeTo)
nodeFrom
- The node the edge originates from (may be null)nodeTo
- The node the edge leads to (may be null)public GraphEdge(java.lang.String l)
l
- the labelpublic GraphEdge()
Method Detail |
public GraphNode getFrom()
public GraphNode getTo()
public void setFrom(GraphNode n)
public void setDrawArrows(boolean b)
public boolean getDrawArrows()
public void setTo(GraphNode n)
public void excise()
excise
in class GraphNode
public boolean matches(java.lang.Object o)
matches
in class GraphNode
GraphNode.matches(java.lang.Object)
public java.lang.Object clone()
clone
in class GraphNode
public javax.swing.JPanel getDefaultPanel()
getDefaultPanel
in class GraphNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |