public class AnimatableIntermediateLayout extends java.lang.Object implements IntermediateLayout
Constructor and Description |
---|
AnimatableIntermediateLayout() |
AnimatableIntermediateLayout(int numberOfIterations) |
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 AnimatableIntermediateLayout()
public AnimatableIntermediateLayout(int numberOfIterations)
public boolean hasNextLayout()
IntermediateLayout
hasNextLayout
in interface IntermediateLayout
public void prepareForNextLayout()
IntermediateLayout
prepareForNextLayout
in interface IntermediateLayout
public java.util.Optional<Position> positionForNode(Node node)
IntermediateLayout
positionForNode
in interface IntermediateLayout
node
- The node for which to get the intermediate position.public java.util.List<Position> intermediatePositionsForEdge(Edge edge)
IntermediateLayout
intermediatePositionsForEdge
in interface IntermediateLayout
edge
- The edge for which to get the intermediate positions.public IntermediateLayout clone()
IntermediateLayout
clone
in interface IntermediateLayout
clone
in class java.lang.Object