| Package | com.somerandomdude.coordy.layouts.threedee |
| Class | public class Grid3d |
| Inheritance | Grid3d Layout3d Layout flash.events.EventDispatcher |
| Implements | ILayout3d |
| Property | Defined by | ||
|---|---|---|---|
| cellHeight : Number [read-only]
Accessor for cell height property
| Grid3d | ||
| cellWidth : Number [read-only]
Accessor for cell width property
| Grid3d | ||
| columns : uint [read-only]
Accessor for columns property
| Grid3d | ||
![]() | depth : Number
Mutator/accessor for layout depth property
| Layout3d | |
![]() | height : Number
Mutator/accessor for layout height property
| Layout3d | |
![]() | jitterX : Number
Mutator/accessor for the jitterX property.
| Layout3d | |
![]() | jitterY : Number
Mutator/accessor for the jitterY property.
| Layout3d | |
![]() | jitterZ : Number
Mutator/accessor for the jitterZ property.
| Layout3d | |
| layers : uint [read-only]
Accessor for layers property
| Grid3d | ||
![]() | nodes : Array
Returns an array of node objects
| Layout | |
| paddingX : Number
Accessor for x padding property
| Grid3d | ||
| paddingY : Number
Accessor for y padding property
| Grid3d | ||
| paddingZ : Number
Accessor for z padding property
| Grid3d | ||
![]() | 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.
| Layout3d | |
![]() | rotation : Number
Accessor for rotation property
| Layout3d | |
| rows : uint [read-only]
Accessor for rows property
| Grid3d | ||
![]() | 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.
| Layout3d | |
![]() | width : Number
Mutator/accessor for layout width property
| Layout3d | |
![]() | x : Number
Mutator/accessor for layout x property
| Layout3d | |
![]() | y : Number
Mutator/accessor for layout y property
| Layout3d | |
![]() | z : Number
Mutator/accessor for layout z property
| Layout3d | |
| Method | Defined by | ||
|---|---|---|---|
|
Grid3d(width:Number, height:Number, depth:Number, columns:uint, rows:uint, layers:uint, paddingX:Number = 0, paddingY:Number = 0, paddingZ:Number = 0, x:Number = 0, y:Number = 0, z:Number = 0, jitterX:Number = 0, jitterY:Number = 0, jitterZ:Number = 0)
Distributes nodes in a 3d grid.
| Grid3d | ||
![]() |
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.
| Grid3d | ||
![]() |
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.
| Grid3d | ||
|
Clones the current object's properties (does not include links to DisplayObjects)
| Grid3d | ||
![]() |
executeUpdateMethod():void
Performs the update method defined by the updateMethod property.
| Layout3d | |
|
getColumn(column:uint):Array
Get node objects by column index
| Grid3d | ||
|
getLayer(layer:uint):Array
Get node objects by layer index
| Grid3d | ||
![]() |
Returns node object at specified index of collection
| Layout | |
![]() |
getNodeByLink(link:Object):INode
Returns node object by specified display object
| Layout | |
|
getNodeFromCoordinates(column:uint, row:uint):GridNode3d
Returns node at specified grid coordinates
| Grid3d | ||
![]() |
getNodeIndex(node:INode):uint
Returns specified node object's index in the collection
| Layout | |
|
getRow(row:uint):Array
Get node objects by row index
| Grid3d | ||
![]() |
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 | |
|
removeItemAt(column:uint, row:uint):void
Removes node link of DisplayObject at specified grid coordinates
| Grid3d | ||
![]() |
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
| Layout3d | |
![]() |
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
| Layout3d | |
![]() |
renderNode(node:INode3d):void
Renders all layout property values of a specified node
| Layout3d | |
![]() |
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
| Grid3d | ||
![]() |
toXML():XML
Generates XML for the layout's properties.
| Layout | |
|
update():void
Updates the nodes' virtual coordinates.
| Grid3d | ||
![]() |
updateAndRender():void
Performs an update on all the nodes' positions and renders each node's corresponding link
| Layout3d | |
| cellHeight | property |
cellHeight:Number [read-only]Accessor for cell height property
Implementation public function get cellHeight():Number
| cellWidth | property |
cellWidth:Number [read-only]Accessor for cell width property
Implementation public function get cellWidth():Number
| columns | property |
columns:uint [read-only]Accessor for columns property
Implementation public function get columns():uint
| layers | property |
layers:uint [read-only]Accessor for layers property
Implementation public function get layers():uint
| paddingX | property |
paddingX:Number [read-write]Accessor for x padding property
Implementation public function get paddingX():Number
public function set paddingX(value:Number):void
| paddingY | property |
paddingY:Number [read-write]Accessor for y padding property
Implementation public function get paddingY():Number
public function set paddingY(value:Number):void
| paddingZ | property |
paddingZ:Number [read-write]Accessor for z padding property
Implementation public function get paddingZ():Number
public function set paddingZ(value:Number):void
| rows | property |
rows:uint [read-only]Accessor for rows property
Implementation public function get rows():uint
| Grid3d | () | constructor |
public function Grid3d(width:Number, height:Number, depth:Number, columns:uint, rows:uint, layers:uint, paddingX:Number = 0, paddingY:Number = 0, paddingZ:Number = 0, x:Number = 0, y:Number = 0, z:Number = 0, jitterX:Number = 0, jitterY:Number = 0, jitterZ:Number = 0)Distributes nodes in a 3d grid.
Parameterswidth:Number — Width of the grid
|
|
height:Number — Height of the grid
|
|
depth:Number — Depth of the grid
|
|
columns:uint — Total columns in the grid
|
|
rows:uint — Total rows in the grid
|
|
layers:uint — Total layers in the grid
|
|
paddingX:Number (default = 0) — Padding of each grid cell in the x-axis
|
|
paddingY:Number (default = 0) — Padding of each grid cell in the y-axis
|
|
paddingZ:Number (default = 0) — Padding of each grid cell in the z-axis
|
|
x:Number (default = 0) — x position of the grid
|
|
y:Number (default = 0) — y position of the grid
|
|
z:Number (default = 0) — z position of the grid
|
|
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
|
|
jitterZ:Number (default = 0) — Jitter multiplier for the layout's nodes on the z 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
|
| clone | () | method |
public override function clone():ILayout3dClones the current object's properties (does not include links to DisplayObjects)
ReturnsILayout3d —
Grid3d clone of object
|
| getColumn | () | method |
public function getColumn(column:uint):ArrayGet node objects by column index
Parameterscolumn:uint — column cell index of grid
|
Array — an array of node objects by column index
|
| getLayer | () | method |
public function getLayer(layer:uint):ArrayGet node objects by layer index
Parameterslayer:uint — layer layer index of grid
|
Array — an array of node objects by layer index
|
| getNodeFromCoordinates | () | method |
public function getNodeFromCoordinates(column:uint, row:uint):GridNode3dReturns node at specified grid coordinates
Parameterscolumn:uint — column column index of grid
|
|
row:uint — row row index of grid
|
GridNode3d —
GridCell object from specified coordinates
|
| getRow | () | method |
public function getRow(row:uint):ArrayGet node objects by row index
Parametersrow:uint — row row index of grid
|
Array — an array of node objects by row index
|
| removeItemAt | () | method |
public function removeItemAt(column:uint, row:uint):voidRemoves node link of DisplayObject at specified grid coordinates
Parameterscolumn:uint — column column index of grid
|
|
row:uint — row row index of grid
|
| 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.