Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.layout.ComponentArrangementStyles
See Also
Constants
A constant for masking actual style constants from style modifiers.
See Also
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.
Remarks
See Also
A modifier that can be added to normal style specifiers to indicate that the arrangement strategy should produce a non-overlapping component layout.
Style specifier describing a component arrangement strategy that places components in multiple rows.
Remarks
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.
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places components in multiple rows.
Remarks
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.
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places the components in MULTI_ROWS with a restricted height.
Remarks
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.
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places the components in MULTI_ROWS with a restricted height and as compact as possible.
Remarks
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.
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places the components in multiple nested rows, like MULTI_ROWS, but separates components of different node type.
Remarks
The strategy for placing components of same type is equal to the one of MULTI_ROWS, but components of different node type are not placed in the same nested row. This means rows are not filled-up anymore (even though there would be space), but the components of different type are placed in a new row. Therefore, this strategy produces more rows and is less compact.
The type of a component is derived from the type of its nodes such that if most of the nodes are of same type, the component is considered to be of this dominant type, too. If there is no dominant type, the component is considered to have no type. Components without type are separated from the components with type.
In contrast to MULTI_ROWS without type separation, this strategy may not come as close to the preferred view ratio, because the node types are of higher priority. Furthermore, results may contain more white space and be less compact.
See Also
Style specifier describing a component arrangement strategy that places the components in MULTI_ROWS with a restricted width.
Remarks
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.
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places the components in MULTI_ROWS with a restricted width and as compact as possible.
Remarks
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.
See Also
Sample Graphs
Style specifier describing no special component arrangement at all.
Remarks
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places components in a circular cloud around the biggest component.
Remarks
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places components in a circular compact cloud around the biggest component.
Remarks
Entities of different components will not overlap, however the bounding boxes of the components may overlap.
In contrast to PACKED_CIRCLE, components might even be placed in empty spaces inside other components.
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places components in a rectangular cloud around the biggest component.
Remarks
Entities of different components will not overlap, however the bounding boxes of the components may overlap.
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.
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places components in a rectangular cloud around the biggest component.
Remarks
Entities of different components will not overlap, however the bounding boxes of the components may overlap.
The aspect ratio of the rectangle is defined by the preferred size of the graph.
See Also
Sample Graphs
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.
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places components above each other in a single column.
Remarks
See Also
Sample Graphs
Style specifier describing a component arrangement strategy that places all components next to each other in a single row.
Remarks
See Also
Sample Graphs
Static Methods
Converts the argument to ComponentArrangementStyles.
Parameters
A map of options to pass to the method.
- value - ComponentArrangementStyles
- The value to convert to ComponentArrangementStyles.
Returns
- ↪ComponentArrangementStyles
- Either
value
if it is already a ComponentArrangementStyles or an appropriate converted value.