Configuration through configurable parameters, or falling
back to some frequently used defaults.
| Modifier and Type | Field and Description |
|---|---|
| private Configuration. | |
| private final double | |
| private final double | |
| private final Configuration. |
| Access | Constructor and Description |
|---|---|
| public | DefaultConfiguration(double
[default: location,Top][default: alignmentInLevelCenter]Specifies the constants to be used for this Configuration. |
| public | DefaultConfiguration(double
Convenience constructor, using a default for the alignmentInLevel. |
| public | DefaultConfiguration(double
Convenience constructor, using a default for the rootLocation and the alignmentInLevel. |
| Modifier and Type | Method and Description |
|---|---|
| public Configuration. | getAlignmentInLevel()
Implements org. |
| public double | getGapBetweenLevels(int
[nextLevel > 0] nextLevel)Implements org. |
| public double | getGapBetweenNodes(TreeNode
Implements org. |
| public Configuration. | getRootLocation()
Implements org. |
| alignmentInLevel | back to summary |
|---|---|
| private Configuration. | |
| gapBetweenLevels | back to summary |
|---|---|
| private final double gapBetweenLevels | |
| gapBetweenNodes | back to summary |
|---|---|
| private final double gapBetweenNodes | |
| location | back to summary |
|---|---|
| private final Configuration. | |
| DefaultConfiguration | back to summary |
|---|---|
| public DefaultConfiguration(double gapBetweenLevels, double gapBetweenNodes, Configuration. Specifies the constants to be used for this Configuration.
| |
| DefaultConfiguration | back to summary |
|---|---|
| public DefaultConfiguration(double gapBetweenLevels, double gapBetweenNodes, Configuration. Convenience constructor, using a default for the alignmentInLevel.
| |
| DefaultConfiguration | back to summary |
|---|---|
| public DefaultConfiguration(double gapBetweenLevels, double gapBetweenNodes) Convenience constructor, using a default for the rootLocation and the alignmentInLevel.
| |
| getAlignmentInLevel | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public Configuration. Implements org. Doc from org. 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) Implements org. Doc from org. Returns the size of the gap between subsequent levels.
| |
| getGapBetweenNodes | back to summary |
|---|---|
| public double getGapBetweenNodes(TreeNode node1, TreeNode node2) Implements org. Doc from org. 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. Implements org. Doc from org. 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.
| |||||||||