Also see this overview.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Configuration.
Possible alignments of a node within a level (centered, towards or away from root) |
| public static enum | Configuration.
Identifies the sides of a rectangle (top, left, ...) |
| Modifier and Type | Method and Description |
|---|---|
| public Configuration. | Returns: the alignment of "smaller" nodes within a levelReturns the alignment of "smaller" nodes within a level. |
| public double | Returns: the size of the gap between level (nextLevel-1) and nextLevel [result >= 0][nextLevel > 0] nextLevel)Returns the size of the gap between subsequent levels. |
| public double | Returns: the minimal size of the gap between node1 and node2 [result >= 0]Returns the size of the minimal gap of nodes within a level. |
| public Configuration. | Returns: the position of the root node in the diagramReturns the position of the root node in the diagram. |
| getAlignmentInLevel | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public Configuration. Returns the alignment of "smaller" nodes within a level. By default all nodes of one level are centered in the level. However one may also align them "towards the root" or "away from the root". When the root is located at the top this means the nodes are aligned "to the top of the level" or "to the bottom of the level".
Alignment in level when root is at the left:
Of cause the alignment also works when the root is at the bottom or at the right side.
| |||||||||||||
| getGapBetweenLevels | back to summary |
|---|---|
| public double getGapBetweenLevels(int nextLevel) Returns the size of the gap between subsequent levels.
| |
| getGapBetweenNodes | back to summary |
|---|---|
| public double getGapBetweenNodes(TreeNode node1, TreeNode node2) Returns the size of the minimal gap of nodes within a level. In the layout there will be a gap of at least the returned size between both given nodes.
node1 and node2 are at the same level and are placed next to each other.
| |
| getRootLocation | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public Configuration. Returns the position of the root node in the diagram. By default the root of the tree is located at the top of the diagram. However one may also put it at the left, right or bottom of the diagram.
| |||||||||
| Modifier and Type | Field and Description |
|---|---|
| public static final Configuration. | |
| public static final Configuration. | |
| public static final Configuration. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Configuration. | |
| public static Configuration. |
| AwayFromRoot | back to summary |
|---|---|
| public static final Configuration. | |
| Center | back to summary |
|---|---|
| public static final Configuration. | |
| TowardsRoot | back to summary |
|---|---|
| public static final Configuration. | |
| AlignmentInLevel | back to summary |
|---|---|
| private AlignmentInLevel() | |
| valueOf | back to summary |
|---|---|
| public static Configuration. | |
| values | back to summary |
|---|---|
| public static Configuration. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Configuration. | |
| public static final Configuration. | |
| public static final Configuration. | |
| public static final Configuration. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Configuration. | |
| public static Configuration. |
| Bottom | back to summary |
|---|---|
| public static final Configuration. | |
| Left | back to summary |
|---|---|
| public static final Configuration. | |
| Right | back to summary |
|---|---|
| public static final Configuration. | |
| Top | back to summary |
|---|---|
| public static final Configuration. | |
| Location | back to summary |
|---|---|
| private Location() | |
| valueOf | back to summary |
|---|---|
| public static Configuration. | |
| values | back to summary |
|---|---|
| public static Configuration. | |