| Package | com.somerandomdude.coordy.layouts.twodee |
| Class | public class HorizontalLine |
| Inheritance | HorizontalLine Layout2d Layout flash.events.EventDispatcher |
| Implements | ILayout2d, IOrderedLayout |
| Property | Defined by | ||
|---|---|---|---|
![]() | height : Number
Mutator/accessor for layout height property
| Layout2d | |
| hPadding : Number
Mutator/accessor for horizontal padding between nodes in the line
| HorizontalLine | ||
![]() | jitterX : Number
Mutator/accessor for the jitterX property.
| Layout2d | |
![]() | jitterY : Number
Mutator/accessor for the jitterY property.
| Layout2d | |
![]() | nodes : Array
Returns an array of node objects
| Layout | |
| order : String
Mutator/accessor for the order in which the nodes are stacked (ascending or descending)
| HorizontalLine | ||
![]() | proxyUpdater : IProxyUpdater
Sets a proxy update method for altering layouts as opposed to internal update methods
such as update(), render() or updateAndRender()
This allows more customization for the updating sequence.
| Layout2d | |
![]() | rotation : Number
Mutator/accessor for rotation property
| Layout2d | |
![]() | size : int
Returns the number of nodes currently stored and managed
| Layout | |
![]() | updateMethod : String
Specifies whether layout properties (x, y, width, height, etc.) adjust the layout
automatically without calling apply() method.
| Layout2d | |
![]() | width : Number
Mutator/accessor for layout width property
| Layout2d | |
![]() | x : Number
Mutator/accessor for layout x property
| Layout2d | |
![]() | y : Number
Mutator/accessor for layout y property
| Layout2d | |
| Method | Defined by | ||
|---|---|---|---|
|
HorizontalLine(hPadding:Number = 0, x:Number = 0, y:Number = 0, jitterX:Number = 0, jitterY:Number = 0)
Distributes nodes in a horizontal line
| HorizontalLine | ||
![]() |
addLinkAt(object:Object, index:uint):void
Adds a link between the specified display object to the node object at the specified index
| Layout | |
|
Adds object to layout in next available position.
| HorizontalLine | ||
![]() |
addNodes(count:int):void
Adds a specified number of empty nodes to the layout
| Layout | |
|
addToLayout(object:Object, moveToCoordinates:Boolean = true):INode
Adds object to layout in next available position This method is depreceated.
| HorizontalLine | ||
|
addToLayoutAt(object:Object, index:int, moveToCoordinates:Boolean = true):INode2d
Adds object to layout in the specified order within the layout
| HorizontalLine | ||
|
Clones the current object's properties (does not include links to DisplayObjects)
| HorizontalLine | ||
![]() |
executeUpdateMethod():void
Performs the update method defined by the updateMethod property.
| Layout2d | |
![]() |
Returns node object at specified index of collection
| Layout | |
![]() |
getNodeByLink(link:Object):INode
Returns node object by specified display object
| Layout | |
![]() |
getNodeIndex(node:INode):uint
Returns specified node object's index in the collection
| Layout | |
![]() |
linkExists(link:Object):Boolean
Returns true if a link (DisplayObject owned by a layout's node) exists in the layout
| Layout | |
![]() |
removeAllNodes():void
Removes all nodes from the layout
| Layout | |
![]() |
removeLinkAt(index:uint):void
Removed the link between the node and display object at the specified index
| Layout | |
![]() |
removeLinks():void
Removes all links between nodes and display objects
| Layout | |
![]() |
removeNode(node:INode):void
Removes specified cell and its link from layout organizer and adjusts layout appropriately
| Layout2d | |
![]() |
removeNodeByLink(link:Object):void
Removes the node that is linked to the specified object
| Layout | |
![]() |
render():void
Renders all layout property values to all objects in the collection
| Layout2d | |
![]() |
renderNode(node:INode2d):void
Renders all layout property values of a specified node
| Layout2d | |
![]() |
Swaps links of two node objects
| Layout | |
![]() |
toJSON():String
Serializes the layout data of each node as a JSON string.
| Layout | |
|
toString():String
Returns the type of layout in a string format
| HorizontalLine | ||
![]() |
toXML():XML
Generates XML for the layout's properties.
| Layout | |
|
update():void
Updates the nodes' virtual coordinates.
| HorizontalLine | ||
![]() |
updateAndRender():void
Performs an update on all the nodes' positions and renders each node's corresponding link
| Layout2d | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
clearNodes():void
| Layout | |
![]() |
| Layout | |
![]() |
| Layout | |
![]() |
storeNodeAt(node:INode, index:int):int
| Layout | |
|
validateObject(object:Object):Boolean
| HorizontalLine | ||
| hPadding | property |
hPadding:Number [read-write]Mutator/accessor for horizontal padding between nodes in the line
Implementation public function get hPadding():Number
public function set hPadding(value:Number):void
| order | property |
order:String [read-write]Mutator/accessor for the order in which the nodes are stacked (ascending or descending)
Implementation public function get order():String
public function set order(value:String):void
See also
| HorizontalLine | () | constructor |
public function HorizontalLine(hPadding:Number = 0, x:Number = 0, y:Number = 0, jitterX:Number = 0, jitterY:Number = 0)Distributes nodes in a horizontal line
ParametershPadding:Number (default = 0) — Horizontal padding between each node in the line
|
|
x:Number (default = 0) — x position of the horizontal line
|
|
y:Number (default = 0) — y position of the horizontal line
|
|
jitterX:Number (default = 0) — Jitter multiplier for the layout's nodes on the x axis
|
|
jitterY:Number (default = 0) — Jitter multiplier for the layout's nodes on the y axis
|
| addNode | () | method |
public override function addNode(object:Object = null, moveToCoordinates:Boolean = true):INodeAdds object to layout in next available position.
Parametersobject:Object (default = null) — object Object to add to layout
|
|
moveToCoordinates:Boolean (default = true) — moveToCoordinates automatically move DisplayObject to corresponding nodes's coordinates
|
INode —
newly created node object containing a link to the object
|
| addToLayout | () | method |
public override function addToLayout(object:Object, moveToCoordinates:Boolean = true):INodeAdds object to layout in next available position This method is depreceated.
Parametersobject:Object — object Object to add to layout
|
|
moveToCoordinates:Boolean (default = true) — moveToCoordinates automatically move DisplayObject to corresponding node's coordinates
|
INode —
newly created node object containing a link to the object
|
| addToLayoutAt | () | method |
public function addToLayoutAt(object:Object, index:int, moveToCoordinates:Boolean = true):INode2dAdds object to layout in the specified order within the layout
Parametersobject:Object — object Object to add to layout
|
|
index:int — index Index at which the DisplayObject is put in the layout
|
|
moveToCoordinates:Boolean (default = true) — moveToCoordinates automatically move DisplayObject to corresponding node's coordinates
|
INode2d —
newly created node object containing a link to the object
|
| clone | () | method |
public override function clone():ILayout2dClones the current object's properties (does not include links to DisplayObjects)
ReturnsILayout2d —
HorizontalLine clone of object
|
| toString | () | method |
public override function toString():StringReturns the type of layout in a string format
ReturnsString — Layout's type
|
See also
| update | () | method |
public override function update():voidUpdates the nodes' virtual coordinates. Note - this method does not update the actual objects linked to the layout.
| validateObject | () | method |
protected override function validateObject(object:Object):BooleanParameters
object:Object |
Boolean |