|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.layout.edge.SimpleEdgeLayouter
This class provides a set of methods that can be used for arranging orthogonal or straight edges.
| Field Summary | |
boolean |
bendAtCenter
Determines the distance from the start-point to the first bend of an orthogonal edge. |
int |
minDistanceToMarker
The minimum distance between the bends of edge and the edges marker. |
int |
preferBendDistance
Prefer distance between the start-point and the first bend of an orthogonal edge. |
| Constructor Summary | |
SimpleEdgeLayouter()
Constructor. |
|
| Method Summary | |
void |
arrangeEdge(LayoutableEdge edge)
This method arranges an given edge. |
void |
arrangeEdge(LayoutableEdge edge,
int type)
This method arranges an given edge. |
Coordinate[] |
getArrangedCoords(LayoutableEdge edge,
Coordinate[] coords,
int markerBeginSize,
int markerEndSize,
int type)
This method returns the new edge path according the specifications. |
Coordinate[] |
getArrangedCoords(LayoutableEdge edge,
Coordinate[] coords,
int markerBeginSize,
int markerEndSize,
int sourceDirection,
int targetDirection,
int type)
This method returns the new edge path according the specifications. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean bendAtCenter
true the first bend is at the middle point between the start
and end-point of the edge, otherwise the distance specified by preferBendDistance
preferBendDistance
public int preferBendDistance
bendAtCenter is true
public int minDistanceToMarker
| Constructor Detail |
public SimpleEdgeLayouter()
| Method Detail |
public void arrangeEdge(LayoutableEdge edge)
edge - the edge that is to be arranged.
public void arrangeEdge(LayoutableEdge edge,
int type)
LayoutableEdge.getType()
edge - that is to be arranged.type - that should be taken into consideration.
public Coordinate[] getArrangedCoords(LayoutableEdge edge,
Coordinate[] coords,
int markerBeginSize,
int markerEndSize,
int type)
edge - that should be arrangedcoords - the current coordinate of the specified edge.
This method ignores the internal
edge coordinates which can be gotten by LayoutableEdge.getCoordinates()markerBeginSize - the edge's start-marker size. This method ignores the internal
start-marker size which can be gotten by LayoutableEdge.getMarkerBeginSize()markerEndSize - the edge's end-marker size. This method ignores the internal
end-marker size which can be gotten by LayoutableEdge.getMarkerEndSize()type - of the edge. This method ignores the internal
edge type which can be gotten by LayoutableEdge.getType()
public Coordinate[] getArrangedCoords(LayoutableEdge edge,
Coordinate[] coords,
int markerBeginSize,
int markerEndSize,
int sourceDirection,
int targetDirection,
int type)
edge - that should be arrangedcoords - the current coordinate of the specified edge.
This method ignores the internal
edge coordinates which can be gotten by LayoutableEdge.getCoordinates()markerBeginSize - the edge's start-marker size. This method ignores the internal
start-marker size which can be gotten by LayoutableEdge.getMarkerBeginSize()markerEndSize - the edge's end-marker size. This method ignores the internal
end-marker size which can be gotten by LayoutableEdge.getMarkerEndSize()sourceDirection - the outgoing direction of the edge.targetDirection - the incoming direction of the edge.type - of the edge. This method ignores the internal
edge type which can be gotten by LayoutableEdge.getType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||