public class DirectIntermediateLayout extends java.lang.Object implements IntermediateLayout
| Constructor and Description |
|---|
DirectIntermediateLayout() |
| Modifier and Type | Method and Description |
|---|---|
IntermediateLayout |
clone()
Returns an uninitialized clone of this intermediate layout which can be used for further calculations.
|
boolean |
hasNextLayout()
Returns whether a next intermediate layout exists.
|
java.util.List<Position> |
intermediatePositionsForEdge(Edge edge)
The intermediate positions for the edge to be drawn at in the layout.
|
java.util.Optional<Position> |
positionForNode(Node node)
The position for the node in the intermediate layout.
|
void |
prepareForNextLayout()
Prepares this intermediate layout for the next layout step.
|
public boolean hasNextLayout()
IntermediateLayouthasNextLayout in interface IntermediateLayoutpublic void prepareForNextLayout()
IntermediateLayoutprepareForNextLayout in interface IntermediateLayoutpublic java.util.Optional<Position> positionForNode(Node node)
IntermediateLayoutpositionForNode in interface IntermediateLayoutnode - The node for which to get the intermediate position.public java.util.List<Position> intermediatePositionsForEdge(Edge edge)
IntermediateLayoutintermediatePositionsForEdge in interface IntermediateLayoutedge - The edge for which to get the intermediate positions.public IntermediateLayout clone()
IntermediateLayoutclone in interface IntermediateLayoutclone in class java.lang.Object