public final class ComponentArrangementStyles extends FlagsEnum<ComponentArrangementStyles>
ComponentLayout.getStyle()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static ComponentArrangementStyles |
MASK
A constant for masking actual style constants from style modifiers.
|
static ComponentArrangementStyles |
MODIFIER_AS_IS
A modifier that can be added to normal style specifiers to indicate that the arrangement strategy should take the
initial positions of the components into account.
|
static ComponentArrangementStyles |
MODIFIER_NO_OVERLAP
A modifier that can be added to normal style specifiers to indicate that the arrangement strategy should produce a
non-overlapping component layout.
|
static ComponentArrangementStyles |
MULTI_ROWS
Style specifier describing a component arrangement strategy that places components in multiple rows.
|
static ComponentArrangementStyles |
MULTI_ROWS_COMPACT
Style specifier describing a component arrangement strategy that places components in multiple rows.
|
static ComponentArrangementStyles |
MULTI_ROWS_HEIGHT_CONSTRAINT
Style specifier describing a component arrangement strategy that places the components in
MULTI_ROWS with a
restricted height. |
static ComponentArrangementStyles |
MULTI_ROWS_HEIGHT_CONSTRAINT_COMPACT
Style specifier describing a component arrangement strategy that places the components in
MULTI_ROWS with a
restricted height and as compact as possible. |
static ComponentArrangementStyles |
MULTI_ROWS_WIDTH_CONSTRAINT
Style specifier describing a component arrangement strategy that places the components in
MULTI_ROWS with a
restricted width. |
static ComponentArrangementStyles |
MULTI_ROWS_WIDTH_CONSTRAINT_COMPACT
Style specifier describing a component arrangement strategy that places the components in
MULTI_ROWS with a
restricted width and as compact as possible. |
static ComponentArrangementStyles |
NONE
Style specifier describing no special component arrangement at all.
|
static ComponentArrangementStyles |
PACKED_CIRCLE
Style specifier describing a component arrangement strategy that places components in a circular cloud around the
biggest component.
|
static ComponentArrangementStyles |
PACKED_COMPACT_CIRCLE
Style specifier describing a component arrangement strategy that places components in a circular compact cloud around
the biggest component.
|
static ComponentArrangementStyles |
PACKED_COMPACT_RECTANGLE
Style specifier describing a component arrangement strategy that places components in a rectangular cloud around the
biggest component.
|
static ComponentArrangementStyles |
PACKED_RECTANGLE
Style specifier describing a component arrangement strategy that places components in a rectangular cloud around the
biggest component.
|
static ComponentArrangementStyles |
ROWS
Style specifier describing a component arrangement strategy that places components in multiple rows so that the overall
aspect ratio of the whole graph gets as close to the aspect ratio of the preferred layout size as possible.
|
static ComponentArrangementStyles |
SINGLE_COLUMN
Style specifier describing a component arrangement strategy that places components above each other in a single column.
|
static ComponentArrangementStyles |
SINGLE_ROW
Style specifier describing a component arrangement strategy that places all components next to each other in a single
row.
|
Modifier and Type | Method and Description |
---|---|
static ComponentArrangementStyles |
fromName(String name) |
static ComponentArrangementStyles |
fromOrdinal(int value) |
protected ComponentArrangementStyles |
fromOrdinalImpl(int ordinal) |
protected ComponentArrangementStyles[] |
getItems()
Returns all items defined in this FlagsEnum.
|
int |
value() |
and, and, contains, containsAll, doubleValue, equals, equals, floatValue, hashCode, intValue, inverse, inverse, longValue, notContains, notEquals, or, or, ordinal, toString, xor, xor
byteValue, shortValue
public static final ComponentArrangementStyles MASK
public static final ComponentArrangementStyles MODIFIER_AS_IS
Combining this modifier is supported with the following styles: SINGLE_ROW
, SINGLE_COLUMN
,
PACKED_RECTANGLE
, PACKED_COMPACT_RECTANGLE
, PACKED_CIRCLE
and
PACKED_COMPACT_CIRCLE
.
public static final ComponentArrangementStyles MODIFIER_NO_OVERLAP
Combining this modifier is not supported with NONE
.
NONE
.ComponentLayout.setStyle(ComponentArrangementStyles)
public static final ComponentArrangementStyles MULTI_ROWS
The strategy tries to arrange the components such that the aspect ratio of the final component placement gets as close
as possible to the aspect ratio of the preferred layout size, configurable using
PreferredSize
.
In contrast to
ROWS
, each row may also be divided into further sub-rows, which is especially useful if there are few very
large components and many significantly smaller ones.
public static final ComponentArrangementStyles MULTI_ROWS_COMPACT
The strategy tries to arrange the components such that the aspect ratio of the final component placement gets close to
the aspect ratio of the preferred layout size, configurable using
PreferredSize
.
But in contrast to
MULTI_ROWS
, this strategy does not always try to come as close to the preferred view ratio, if a ratio
close to the preferred ratio only induces a lot of unused view space. This unused space will be minimized.
In contrast to
ROWS
, each row may also be divided into further sub-rows, which is especially useful if there are few very
large components and many significantly smaller ones.
public static final ComponentArrangementStyles MULTI_ROWS_HEIGHT_CONSTRAINT
MULTI_ROWS
with a
restricted height. The resulting height does not exceed the preferred height
(PreferredSize
).
In contrast to
MULTI_ROWS_HEIGHT_CONSTRAINT_COMPACT
, the result will be an arrangement which uses as much height as
possible, even if that means that all components will be arranged in one single column.
ComponentLayout.setStyle(ComponentArrangementStyles)
,
ComponentLayout.setPreferredSize(com.yworks.yfiles.algorithms.YDimension)
public static final ComponentArrangementStyles MULTI_ROWS_HEIGHT_CONSTRAINT_COMPACT
MULTI_ROWS
with a
restricted height and as compact as possible. The resulting height does not exceed the preferred height
(PreferredSize
).
In comparison with
MULTI_ROWS_HEIGHT_CONSTRAINT
, the result will be compacted, which means that an arrangement with the
minimum width such that the height constraint is still fulfilled will be realized.
ComponentLayout.setStyle(ComponentArrangementStyles)
,
ComponentLayout.setPreferredSize(com.yworks.yfiles.algorithms.YDimension)
public static final ComponentArrangementStyles MULTI_ROWS_WIDTH_CONSTRAINT
MULTI_ROWS
with a
restricted width. The resulting width does not exceed the preferred width
(PreferredSize
).
In contrast to MULTI_ROWS_WIDTH_CONSTRAINT_COMPACT
the result will be an arrangement which uses as much space
in width as possible, even if that means that all components will be arranged in a single row.
ComponentLayout.setStyle(ComponentArrangementStyles)
,
ComponentLayout.setPreferredSize(com.yworks.yfiles.algorithms.YDimension)
public static final ComponentArrangementStyles MULTI_ROWS_WIDTH_CONSTRAINT_COMPACT
MULTI_ROWS
with a
restricted width and as compact as possible. The resulting width does not exceed the preferred width
(PreferredSize
).
In comparison with MULTI_ROWS_HEIGHT_CONSTRAINT
the result will be compacted, in order to minimize unused view
space induced by components that are large in height.
ComponentLayout.setStyle(ComponentArrangementStyles)
,
ComponentLayout.setPreferredSize(com.yworks.yfiles.algorithms.YDimension)
public static final ComponentArrangementStyles NONE
MODIFIER_NO_OVERLAP
, components might get moved so that they don't overlap after the layout.public static final ComponentArrangementStyles PACKED_CIRCLE
public static final ComponentArrangementStyles PACKED_COMPACT_CIRCLE
In contrast to PACKED_CIRCLE
, components might even be placed in empty spaces inside other components.
public static final ComponentArrangementStyles PACKED_COMPACT_RECTANGLE
In contrast to PACKED_RECTANGLE
, components might even be placed in empty spaces inside other components.
The aspect ratio of the rectangle is defined by the preferred size
of the graph.
public static final ComponentArrangementStyles PACKED_RECTANGLE
The aspect ratio of the rectangle is defined by the preferred size
of the graph.
public static final ComponentArrangementStyles ROWS
public static final ComponentArrangementStyles SINGLE_COLUMN
MODIFIER_AS_IS
, components will be placed in the same order as they were placed before the layout.public static final ComponentArrangementStyles SINGLE_ROW
MODIFIER_AS_IS
, components will be placed in the same order as they were placed before the layout.public static final ComponentArrangementStyles fromName(String name)
public static final ComponentArrangementStyles fromOrdinal(int value)
protected final ComponentArrangementStyles fromOrdinalImpl(int ordinal)
fromOrdinalImpl
in class FlagsEnum<ComponentArrangementStyles>
protected final ComponentArrangementStyles[] getItems()
FlagsEnum
getItems
in class FlagsEnum<ComponentArrangementStyles>
public int value()