| Package | com.somerandomdude.coordy.layouts.twodee |
| Class | public class Ellipse |
| Inheritance | Ellipse Layout2d Layout flash.events.EventDispatcher |
| Implements | ILayout2d |
| Property | Defined by | ||
|---|---|---|---|
| alignAngleOffset : Number
The additional angle offset of each node from it's original path-aligned angle (in degrees)
| Ellipse | ||
| alignType : String
The type of path alignment each node executes (parallel or perpendicular)
| Ellipse | ||
| eccentricity : Number [read-only]
Accessor for eccentricity property
| Ellipse | ||
![]() | height : Number
Mutator/accessor for layout height property
| Layout2d | |
![]() | 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 | |
![]() | 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 | ||
|---|---|---|---|
|
Ellipse(width:Number, height:Number, x:Number = 0, y:Number = 0, rotation:Number = 0, jitterX:Number = 0, jitterY:Number = 0, alignType:String, alignOffset:Number = 0)
Distributes nodes in an ellipse.
| Ellipse | ||
![]() |
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.
| Ellipse | ||
![]() |
addNodes(count:int):void
Adds a specified number of empty nodes to the layout
| Layout | |
|
addToLayout(object:Object, moveToCoordinates:Boolean = true):INode
Adds DisplayObject to layout in next available position This method is depreceated.
| Ellipse | ||
|
Clones the current object's properties (does not include links to DisplayObjects)
| Ellipse | ||
![]() |
executeUpdateMethod():void
Performs the update method defined by the updateMethod property.
| Layout2d | |
|
getCellAngle(cell:INode2d):Number
Returns angle of position of specified cell in degrees
| Ellipse | ||
![]() |
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
Applies all layout property values to all cells/display objects in the collection
| Ellipse | ||
|
renderNode(node:INode2d):void
Renders all layout property values of a specified node
| Ellipse | ||
|
setNodeAngle(node:INode2d, angle:Number):void
Sets angle of position of specified cell in degrees
| Ellipse | ||
![]() |
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
| Ellipse | ||
![]() |
toXML():XML
Generates XML for the layout's properties.
| Layout | |
|
update():void
Updates the nodes' virtual coordinates.
| Ellipse | ||
![]() |
updateAndRender():void
Performs an update on all the nodes' positions and renders each node's corresponding link
| Layout2d | |
| alignAngleOffset | property |
alignAngleOffset:Number [read-write]The additional angle offset of each node from it's original path-aligned angle (in degrees)
Implementation public function get alignAngleOffset():Number
public function set alignAngleOffset(value:Number):void
| alignType | property |
alignType:String [read-write]The type of path alignment each node executes (parallel or perpendicular)
Implementation public function get alignType():String
public function set alignType(value:String):void
See also
| eccentricity | property |
eccentricity:Number [read-only]Accessor for eccentricity property
Implementation public function get eccentricity():Number
| Ellipse | () | constructor |
public function Ellipse(width:Number, height:Number, x:Number = 0, y:Number = 0, rotation:Number = 0, jitterX:Number = 0, jitterY:Number = 0, alignType:String, alignOffset:Number = 0)Distributes nodes in an ellipse.
Parameterswidth:Number — Width of the ellipse
|
|
height:Number — Height of the ellipse
|
|
x:Number (default = 0) — x position of the ellipse
|
|
y:Number (default = 0) — y position of the ellipse
|
|
rotation:Number (default = 0) — Rotation of the ellipse
|
|
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
|
|
alignType:String — Method in which nodes align to the path of the ellipse
|
|
alignOffset:Number (default = 0) — The additional offset angle of each node's path alignment
|
| 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 DisplayObject 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():ILayout2dClones the current object's properties (does not include links to DisplayObjects)
ReturnsILayout2d —
Ellipse clone of object
|
| getCellAngle | () | method |
public function getCellAngle(cell:INode2d):NumberReturns angle of position of specified cell in degrees
Parameterscell:INode2d — cell cell object
|
Number |
| render | () | method |
public override function render():voidApplies all layout property values to all cells/display objects in the collection
| renderNode | () | method |
public override function renderNode(node:INode2d):voidRenders all layout property values of a specified node
Parametersnode:INode2d |
| setNodeAngle | () | method |
public function setNodeAngle(node:INode2d, angle:Number):voidSets angle of position of specified cell in degrees
Parametersnode:INode2d — cell cell object
|
|
angle:Number — angle angle of cell in degrees
|
| 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.