public enum LayoutStyle extends Enum<LayoutStyle>
OrthogonalLayout.getLayoutStyle()
Enum Constant and Description |
---|
BOX
A layout style that modifies the size of nodes to minimize the overall number of bends.
|
FIXED_BOX
A layout style similar to
BOX that maintains the original node size. |
FIXED_MIXED
A layout style similar to
MIXED that maintains the original node size. |
MIXED
A layout style that produces non-orthogonal edges and resizes the nodes to a small uniform size.
|
NORMAL
A layout style that produces orthogonal edges while maintaining the original node size.
|
NORMAL_TREE
A layout style similar to
NORMAL that is best-suited for tree-like structures. |
UNIFORM
A layout style that produces orthogonal edges and nodes of uniform size.
|
Modifier and Type | Method and Description |
---|---|
static LayoutStyle |
fromOrdinal(int ordinal) |
int |
value() |
static LayoutStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LayoutStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayoutStyle BOX
The layout algorithm will enlarge nodes based on the number and position of their neighbors in order to minimize the number of required bends. The segments of all edges are either horizontal or vertical.
public static final LayoutStyle FIXED_BOX
BOX
that maintains the original node size.
Nodes will be placed at the same positions as with
FIXED_MIXED
, but edges will be routed strictly orthogonally.
public static final LayoutStyle FIXED_MIXED
MIXED
that maintains the original node size.
This style introduces additional bends into some edges and routes the last edge segment of these edges non-orthogonally to their adjacent nodes.
public static final LayoutStyle MIXED
This layout style resembles BOX
, but it resizes all nodes to equal size.
It introduces additional bends into some edges and routes the last edge segment of these edges non-orthogonally to their adjacent nodes.
public static final LayoutStyle NORMAL
public static final LayoutStyle NORMAL_TREE
NORMAL
that is best-suited for tree-like structures.
Larger subtrees are processed using a specialized tree layout algorithm which arranges all directed subtree structures in an optimized way.
OrthogonalLayout.setLayoutStyle(LayoutStyle)
public static final LayoutStyle UNIFORM
Before calculating the layout, all nodes will be assigned equal sizes.
public static final LayoutStyle fromOrdinal(int ordinal)
public int value()
public static LayoutStyle 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 LayoutStyle[] values()
for (LayoutStyle c : LayoutStyle.values()) System.out.println(c);