ibm_ilog.diagram.gfxlayout.Layout (version 1.1-SNAPSHOT)
Object » ibm_ilog.diagram.gfxlayout.Layout
dojo.require("ibm_ilog.diagram.gfxlayout.Layout");
A Layout instance is responsible for arranging the children of a GFX container according to positioning and sizing constraints.
Method Summary
- adjustBBox(bbox) Adjusts the specified rectangle according to the constraints of this layout.
- computePreferredSize(proposedSize) compute the preferred size of the associated container according to the layout strategy.
- constructor(args) Creates and initializes a new ibm_ilog.diagram.gfxlayout.Layout instance. args : Object : a mixin set of parameters.
- doLayout(contBounds) Applies this layout to the associated container.
- getConfig() Gets the current configuration of this layout instance.
- inLayout() Indicates whether this layout is in a layout session.
- invalidate() Invalidates this layout.
- layoutChildren(contBounds) Applies this layout strategy to the associated container within the specified bounds. Subclass must override this method to implement their own layout logic.
- placeChildInSlot(shape, slotBounds, hAlign, vAlign) Places the specified object in the given slotBounds.
Event Summary
- onLayoutPropertyChanged() Fires a layout property changed event.
Methods
Adjusts the specified rectangle according to the constraints of this layout.
Parameter | Type | Description |
---|---|---|
bbox | Rectangle |
compute the preferred size of the associated container according to the layout strategy.
Parameter | Type | Description |
---|---|---|
proposedSize |
Creates and initializes a new ibm_ilog.diagram.gfxlayout.Layout instance.
args : Object : a mixin set of parameters.
Parameter | Type | Description |
---|---|---|
args |
Object
An object that represents the layout current configuration.
Gets the current configuration of this layout instance.
Applies this layout strategy to the associated container within the specified bounds.
Subclass must override this method to implement their own layout logic.
Parameter | Type | Description |
---|---|---|
contBounds | Rect |
This method should be invoked by layout implementation to place a shape within the given slot bounds, taking into account the vertical and horizontal alignment contraints of the shape (specified by means of the 'valign' and 'halign' properties on the shape object) and the margins, if any (specified by means of the 'margins' property. shape : dojox.gfx.Shape: the shape. slotBounds : Rectangle : the slot bounds (i.e the bounds where the shape must lie in)
Parameter | Type | Description |
---|---|---|
shape | dojox.gfx.Shape | |
slotBounds | dojox.gfx.Rectangle | |
hAlign | Boolean | : indicates whether the shape must be aligned horizontally according to the value of its halign property. |
vAlign | Boolean | : indicates whether the shape must be aligned vertically according to the value of its valign property. |