ibm_ilog.diagram.gfxlayout
Method Summary
- CanvasLayout()
- FillLayout()
- GridLayout(args) A layout class that arranges children of a container as a grid.
- Layout(args) The base class for Layout implementations.
- StackLayout(args) A layout class that arranges children of a container as a horizontal or vertical stack.
- doPendingValidate(obj) Processes immediately any validation request registered for the specified panel.
- postInvalidate(obj) Posts an asynchronous validation request for the specified Panel.
Attached Objects
Methods
The GridLayout class arranges children of a container as grid elements.
The grid structure is defined by the 'rows' and 'cols' constructor parameters. These properties are arrays of descriptor objects that defined how the column or row size is computed. These descriptor objects support the following properties: 'width': if the container width (resp. height) is not fixed, then the column width (resp. row height) depends on the value of this property. A value of -1 means the dimension will accomodate to the maximum children dimension. Any other positive number sets the column width (resp. row height). 'weight': if the container width (resp. height) is fixed, this property defines how the space remaining after all the fixed width's (resp. height's) have been substracted from the container width (resp. height) is distributed accross the columns (resp. the rows).
The GridLayout class defines the paddingLeft, paddingRight, paddingTop and paddingBottom properties to specificy the internal margins of the panel from which the children are positionned. A convenient global padding property is also defined to set the same padding in all directions.
Children in the grid are placed into the grid cells according to the 'column' and 'row' properties of the children. When these properties are not specified on a shape, the shape is automatically placed in the grid according to its order in the container children list. The direction of the placement flow is defined via the 'horizontalFlow' property, which is 'true' by default. For example, assuming the 'horizontalFlow' property is set to 'true' the children do not defined any specific row/col index, the first child will be placed at the (0,0) cell, the 2nd one at the (1,0) cell, and so on.
A child can span over multiple rows or columns depending on their 'colspan' or 'rowspan' properties. These properties indicates the number of columns or rows the child must overlap. A value of '-1' means the child should span over all the remaining columns or rows.
Children are arranged within the computed grid cell according to their 'valign' (one of the 'top', 'center', 'bottom' and 'stretch' values), 'halign' (one of the 'left', 'center', 'right' and 'stretch' values) and their 'margins' properties.
Parameter | Type | Description |
---|---|---|
args |
A Layout instance is responsible for arranging the children of a GFX container according to positioning and sizing constraints.
Parameter | Type | Description |
---|---|---|
args |
The StackLayout class arranges children of a container as a horizontal or vertical stack depending on the value of its horizontal property. By default, a StackLayout has a vertical flow. An horizontal stack layout align its children vertically in the computed layout slot according to their 'valign' (one of the 'top', 'center', 'bottom' and 'stretch' values) and their 'margins' properties. Respectively, a vertical stack layout align its children horizontally in the computed layout slot according to their 'halign' (one of the 'left', 'center', 'right' and 'stretch' values) and their 'margins' properties. The StackLayout class defines the paddingLeft, paddingRight, paddingTop and paddingBottom properties to specify the internal margins of the panel from which the children are positioned. A convenient global padding property is also defined to set the same padding in all directions. Space between children can be adjusted using the gap property.
Parameter | Type | Description |
---|---|---|
args |
Parameter | Type | Description |
---|---|---|
obj | dojox.gfx.Group |