public enum LayoutMode extends Enum<LayoutMode>
HierarchicLayout.getLayoutMode()
Enum Constant and Description |
---|
FROM_SCRATCH
A layout mode that will recompute the complete layout from scratch.
|
INCREMENTAL
A layout mode that allows to keep some nodes fixed and insert the remaining nodes incrementally.
|
Modifier and Type | Method and Description |
---|---|
static LayoutMode |
fromOrdinal(int ordinal) |
int |
value() |
static LayoutMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LayoutMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayoutMode FROM_SCRATCH
public static final LayoutMode INCREMENTAL
Fixed elements will be handled by the fixed elements sequencer
and fixed elements layerer
.
Incremental elements will be added during the layering or the sequencing phase. They are handled by from scratch layerer
and fixed elements layerer
respectively.
IIncrementalHintsFactory.createLayerIncrementallyHint(java.lang.Object)
,
HierarchicLayout.setLayoutMode(LayoutMode)
,
HierarchicLayout.setFixedElementsSequencer(com.yworks.yfiles.layout.hierarchic.ISequencer)
,
HierarchicLayout.setFixedElementsLayerer(com.yworks.yfiles.layout.hierarchic.ILayerer)
public static final LayoutMode fromOrdinal(int ordinal)
public int value()
public static LayoutMode 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 LayoutMode[] values()
for (LayoutMode c : LayoutMode.values()) System.out.println(c);