public interface DrawableEdge
GraphDrawer
instances to draw the edge
correctly. Specifying all intermediate positions allows for example to add bends to edges, such as long edges used
in the Sugiyama layout algorithm.Modifier and Type | Method and Description |
---|---|
java.util.List<Position> |
intermediatePositions(Position from,
Position to)
Returns a list of intermediate positions on the path from to to.
|
void |
invert()
Inverts this drawable edge by inverting the possible intermediate positions which can be returned.
|
default DrawableEdge |
relativize(Position from,
Position to)
Returns a DrawableEdge with positions relative to the given from and to position, instead of containing absolute
positions.
|
java.util.List<Position> intermediatePositions(Position from, Position to)
from
- The position where this drawable edge starts.to
- The position where this drawable edge ends.void invert()
default DrawableEdge relativize(Position from, Position to)
from
- The position where this drawable edge starts.to
- The position where this drawable edge ends.