public enum LeafPlacement extends Enum<LeafPlacement>
ClassicTreeLayout.getLeafPlacement()
Enum Constant and Description |
---|
ALL_LEAVES_ON_SAME_LAYER
A policy for placing the leaf nodes in a Dendrogram-like fashion.
|
LEAVES_STACKED
A policy for placing the leaf nodes in a stack-like fashion with balanced stack heights.
|
LEAVES_STACKED_LEFT
A policy for placing the leaf nodes in a stack-like fashion using a single stack left.
|
LEAVES_STACKED_LEFT_AND_RIGHT
A policy for placing the leaf nodes in a stack-like fashion using two stacks.
|
LEAVES_STACKED_RIGHT
A policy for placing the leaf nodes in a stack-like fashion using a single stack right.
|
SIBLINGS_ON_SAME_LAYER
A policy for placing the leaf nodes with the same parent in the same layer.
|
Modifier and Type | Method and Description |
---|---|
static LeafPlacement |
fromOrdinal(int ordinal) |
int |
value() |
static LeafPlacement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeafPlacement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeafPlacement ALL_LEAVES_ON_SAME_LAYER
According to this policy, all leaf nodes are placed in one layer (i.e. all leaves are placed on one horizontal line in a top-to-bottom or in a bottom-to-top layout).
public static final LeafPlacement LEAVES_STACKED
In this context, a stack-like fashion means that leaf nodes that connect to the same parent node are placed one upon the other, resulting in horizontally compact layouts.
This policy tries to balance stack heights, i.e., for each subtree that consists only of leaf nodes, LEAVES_STACKED_RIGHT
or LEAVES_STACKED_LEFT_AND_RIGHT
will be used depending on the number of leaves in the subtree.
ClassicTreeLayout.setLeafPlacement(LeafPlacement)
,
ClassicTreeLayout.getLeafPlacement()
public static final LeafPlacement LEAVES_STACKED_LEFT
In this context, a stack-like fashion means that leaf nodes that connect to the same root node are placed one upon the other, resulting in horizontally compact layouts.
This policy uses a single stack that lies to the left relative to the center of the parent node.
ClassicTreeLayout.getLeafPlacement()
,
ClassicTreeLayout.setLeafPlacement(LeafPlacement)
public static final LeafPlacement LEAVES_STACKED_LEFT_AND_RIGHT
In this context, a stack-like fashion means that leaf nodes that connect to the same root node are placed one upon the other, resulting in horizontally compact layouts.
This policy distributes leaf nodes among two stacks, one to the left and one to the right relative to the center of the parent node.
ClassicTreeLayout.getLeafPlacement()
,
ClassicTreeLayout.setLeafPlacement(LeafPlacement)
public static final LeafPlacement LEAVES_STACKED_RIGHT
In this context, a stack-like fashion means that leaf nodes that connect to the same root node are placed one upon the other, resulting in horizontally compact layouts.
This policy uses a single stack that lies to the right relative to the center of the parent node.
ClassicTreeLayout.getLeafPlacement()
,
ClassicTreeLayout.setLeafPlacement(LeafPlacement)
public static final LeafPlacement SIBLINGS_ON_SAME_LAYER
For example, siblings are being placed on a horizontal line in a top-to-bottom or in a bottom-to-top layout.
This policy produces vertically compact layouts.
public static final LeafPlacement fromOrdinal(int ordinal)
public int value()
public static LeafPlacement valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static LeafPlacement[] values()
for (LeafPlacement c : LeafPlacement.values()) System.out.println(c);