Interface ViewLayoutComposition
- All Superinterfaces:
ViewComposition
-
Method Summary
Modifier and TypeMethodDescriptiondefault ViewLayoutComposition
Sets the alignment to apply to grid rows and columns.default ViewLayoutComposition
Sets different alignments for rows and columns.default ViewLayoutComposition
Sets the bounds calculation method to use for determining the extent of a sub-plot.default ViewLayoutComposition
center
(boolean flag) Sets if subviews should be centered relative to their respective rows or columns.default ViewLayoutComposition
center
(int row, int column) Sets if subviews should be centered relative to their respective rows or columns.default ViewLayoutComposition
spacing
(int size) Sets the spacing in pixels between sub-views of the composition operator.default ViewLayoutComposition
spacing
(int row, int column) Sets different spacing values for rows and columns.Methods inherited from interface smile.plot.vega.ViewComposition
resolveAxis, resolveLegend, resolveScale, spec
-
Method Details
-
align
Sets the alignment to apply to grid rows and columns. The supported string values are "all" (the default), "each", and "none".For "none", a flow layout will be used, in which adjacent subviews are simply placed one after the other.
For "each", subviews will be aligned into a clean grid structure, but each row or column may be of variable size.
For "all", subviews will be aligned and each row or column will be sized identically based on the maximum observed size. String values for this property will be applied to both grid rows and columns.
- Parameters:
alignment
- "all", "each", or "none".- Returns:
- this object.
-
align
Sets different alignments for rows and columns.- Parameters:
row
- alignment for rows.column
- alignment for columns.- Returns:
- this object.
-
bounds
Sets the bounds calculation method to use for determining the extent of a sub-plot. One of "full" (the default) or "flush".If set to "full", the entire calculated bounds (including axes, title, and legend) will be used.
If set to "flush", only the specified width and height values for the sub-view will be used. The flush setting can be useful when attempting to place sub-plots without axes or legends into a uniform grid structure.
- Parameters:
method
- "full" or "flush".- Returns:
- this object.
-
center
Sets if subviews should be centered relative to their respective rows or columns.- Parameters:
flag
- a flag indicating if subviews should be centered relative to their respective rows or columns.- Returns:
- this object.
-
center
Sets if subviews should be centered relative to their respective rows or columns.- Parameters:
row
- a flag indicating if subviews should be centered relative to their respective rows.column
- a flag indicating if subviews should be centered relative to their respective columns.- Returns:
- this object.
-
spacing
Sets the spacing in pixels between sub-views of the composition operator.- Parameters:
size
- the spacing between sub-views.- Returns:
- this object.
-
spacing
Sets different spacing values for rows and columns.- Parameters:
row
- the spacing between sub-views.column
- the spacing between sub-views.- Returns:
- this object.
-