|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.graph.DirectedGraph
A graph consisting of nodes and directed edges. A DirectedGraph serves as the input to a graph layout algorithm. The algorithm will place the graph's nodes and edges according to certain goals, such as short, non-crossing edges, and readability.
Field Summary | |
EdgeList |
edges
All of the edges in the graph. |
DirectedGraph |
gPrime
For internal use only. |
NodeList |
nodes
All of the nodes in the graph. |
RankList |
ranks
For internal use only. |
EdgeList |
spanningTree
For internal use only. |
Constructor Summary | |
DirectedGraph()
|
Method Summary | |
Insets |
getPadding(Node node)
Returns the effective padding for the given node. |
void |
removeEdge(Edge edge)
Removes the given edge from the graph. |
void |
removeNode(Node node)
Removes the given node from the graph. |
void |
setDefaultPadding(Insets insets)
Sets the default padding for all nodes in the graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public EdgeList spanningTree
public EdgeList edges
nodes
.
public DirectedGraph gPrime
public NodeList nodes
public RankList ranks
Constructor Detail |
public DirectedGraph()
Method Detail |
public Insets getPadding(Node node)
node
- the node
public void removeEdge(Edge edge)
edge
- the edge to be removedpublic void removeNode(Node node)
node
- the node to removepublic void setDefaultPadding(Insets insets)
null
).
insets
- the padding
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |