ibm_ilog.diagram.gfxlayout.FillLayout
Object » ibm_ilog.diagram.gfxlayout.Layout » ibm_ilog.diagram.gfxlayout.FillLayout
dojo.require("ibm_ilog.diagram.gfxlayout.FillLayout");
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.
Attached Objects
Methods
Defined by ibm_ilog.diagram.gfxlayout.Layout
Adjusts the specified rectangle according to the constraints of this layout.
Parameter | Type | Description |
---|---|---|
bbox | Rectangle |
Overrides ibm_ilog.diagram.gfxlayout.Layout
compute the preferred size of the associated container according to the layout strategy.
Parameter | Type | Description |
---|---|---|
proposedSize |
Defined by ibm_ilog.diagram.gfxlayout.Layout
Creates and initializes a new ibm_ilog.diagram.gfxlayout.Layout instance.
args : Object : a mixin set of parameters.
Parameter | Type | Description |
---|---|---|
args |
Defined by ibm_ilog.diagram.gfxlayout.Layout
Applies this layout to the associated container.
Parameter | Type | Description |
---|---|---|
contBounds | Rect |
Overrides ibm_ilog.diagram.gfxlayout.Layout
Object
An object that represents the layout current configuration.
Gets the current configuration of this layout instance.
Defined by ibm_ilog.diagram.gfxlayout.Layout
Indicates whether this layout is in a layout session.
Defined by ibm_ilog.diagram.gfxlayout.Layout
This method post a layout request to the layout engine.
Overrides ibm_ilog.diagram.gfxlayout.Layout
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 |
Defined by ibm_ilog.diagram.gfxlayout.Layout
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. |
Events
Defined by ibm_ilog.diagram.gfxlayout.Layout
This method should be called by layout subclasses when a property change needs the layout to be refreshed.