These projects are retired. The development has stopped and we don't provide support for them anymore.
Limits extensions
Name
Limits -- define limits for a layer's position.
Description
This extension of the RelativeLayers class allows you to enforce an arbitrary number of positioning limits on a layer. These make it easy to ensure that dynamically positioned layers always stay in an area that is acceptable for your design.
Limits are evaluated in the order of their addition. This means that when there are conflicting rules, the last one will take precedence.
Details
Following is a detailed description of the elements listed in the synopsis.
Methods
RelativeLayer
|
Adds a limit to this layer.
Parameters
limitedEdge
- the edge of the layer on which this rule applies. LEFTEDGE, TOPEDGE, RIGHTEDGE or BOTTOMEDGE
validZone
- the zone in which the limited edge has to reside. LEFTSIDE, RIGHTSIDE, ABOVE or BELOW.
limitingLayerId
- the id of the layer that will enforce the limit. Use an empty string to use the parent layer or window.
limitingLayerBorder
- the border of the limiting layer that will enforce the limit. LEFT, RIGHT, TOP or BOTTOM
limitingLayerBorderOffset
- the number of pixels from the reference layer border to define the valid area edge.
|
|
Removes all the limits that were imposed on this layer. |