public class DefaultPGLayoutConfiguration<T> extends java.lang.Object implements PGLayoutConfiguration<T>
Constructor and Description |
---|
DefaultPGLayoutConfiguration(Direction direction,
double gapBetweenNodes,
boolean isLayoutOrtogonal,
boolean isLayoutReverse,
Padding paddingNode,
CenterAlignment nodeCenterAlignment,
ForwardAlignment nodeForwardAlignment) |
Modifier and Type | Method and Description |
---|---|
Direction |
getDirection() |
double |
getGapBetweenNodes(T node1,
T node2) |
CenterAlignment |
getNodeCenterAlignment(T node) |
ForwardAlignment |
getNodeForwardAlignment(T node) |
Padding |
getPaddingNode(T node) |
boolean |
isLayoutOrtogonal(T node) |
boolean |
isLayoutReverse(T node) |
public DefaultPGLayoutConfiguration(Direction direction, double gapBetweenNodes, boolean isLayoutOrtogonal, boolean isLayoutReverse, Padding paddingNode, CenterAlignment nodeCenterAlignment, ForwardAlignment nodeForwardAlignment)
public Direction getDirection()
getDirection
in interface PGLayoutConfiguration<T>
public double getGapBetweenNodes(T node1, T node2)
getGapBetweenNodes
in interface PGLayoutConfiguration<T>
public boolean isLayoutOrtogonal(T node)
isLayoutOrtogonal
in interface PGLayoutConfiguration<T>
public boolean isLayoutReverse(T node)
isLayoutReverse
in interface PGLayoutConfiguration<T>
public Padding getPaddingNode(T node)
getPaddingNode
in interface PGLayoutConfiguration<T>
public CenterAlignment getNodeCenterAlignment(T node)
getNodeCenterAlignment
in interface PGLayoutConfiguration<T>
public ForwardAlignment getNodeForwardAlignment(T node)
getNodeForwardAlignment
in interface PGLayoutConfiguration<T>