|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.goui.util.GraphLayout.Edge
This class provides the basic implementation for an Edge within the layout graph. It is normally expected that the edge will either be subclassed or supplied with an instance of EdgeConstraint during initialisation to provide specific constraint information for it.
| Constructor Summary | |
GraphLayout.Edge()
This constructor creates a basic Edge instance with no specific constraint information. |
|
GraphLayout.Edge(GraphLayout.EdgeConstraint constraint)
This constructor creates an edge instance using the given constraint. |
|
| Method Summary | |
int |
getMaxSize()
This is a simple default implementation of the getMaxSize() method of EdgeConstraint. |
int |
getMinSize()
This is a simple default implementation of the getMinSize() method of EdgeConstraint. |
int |
getSize()
This method returns the current size of this Edge as determined by the layout process. |
GraphLayout.Vertex |
getVertexNeg()
This method returns the negative (preceeding) Vertex for this edge. |
GraphLayout.Vertex |
getVertexPos()
This method returns the positive (following) Vertex for this edge. |
int |
getWeight()
This is a simple default implementation of the getWeight() method of EdgeConstraint. |
void |
invalidate()
This method will be called when layout information has become invalid. |
void |
remove()
This method removes this Edge instance from the layout graph. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphLayout.Edge()
The default values returned from the constraint methods of this base class are:
public GraphLayout.Edge(GraphLayout.EdgeConstraint constraint)
constraint - The constraint to be used when laying out this edge.GraphLayout.EdgeConstraint| Method Detail |
public final int getSize()
If this Edge has not been laid out since the last call to reset() on the GraphLayout instance then INVALID is returned.
public int getMinSize()
getMinSize in interface GraphLayout.EdgeConstraintGraphLayout.EdgeConstraintpublic int getMaxSize()
getMaxSize in interface GraphLayout.EdgeConstraintGraphLayout.EdgeConstraintpublic int getWeight()
getWeight in interface GraphLayout.EdgeConstraintGraphLayout.EdgeConstraintpublic void invalidate()
invalidate in interface GraphLayout.EdgeConstraintGraphLayout.EdgeConstraintpublic final GraphLayout.Vertex getVertexNeg()
public final GraphLayout.Vertex getVertexPos()
public final void remove()
Warning This method is unsynchronised and it is up to the user to ensure that concurrent modification of the layout graph does not occur.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||