Packagecom.ithaca.timeline
Classpublic class LayoutNode
InheritanceLayoutNode Inheritance spark.components.SkinnableContainer
Subclasses LayoutModifier, Timeline, TraceLine, TraceLineGroup

The LayoutNode class is a base class for each node in the layout tree; it should be an abstract class. It is inherited by the following classes:

Default MXML PropertymxmlContentFactory

See also

Timeline
TraceLineGroup
TraceLine
LayoutModifier


Public Properties
 PropertyDefined By
  layoutXML : XML
The XML descriptor of the sub-layout from this node.
LayoutNode
  parentNode : LayoutNode
A reference to the parent node of this node.
LayoutNode
  _timeline : Timeline
A reference to the timeline
LayoutNode
  titleComponent : SkinnableContainer
The visual component used to show the title part of the node.
LayoutNode
Public Methods
 MethodDefined By
  
addChildAndTitle(child:LayoutNode, index:int = -1):void
LayoutNode
  
Return the layoutNode of a given name in the subtree of this node
LayoutNode
  
LayoutNode
  
moveTraceline(child:LayoutNode, index:int = -1):void
LayoutNode
  
onSourceChange(event:CollectionEvent):void
LayoutNode
  
Remove a child (mostly Traceline)
LayoutNode
  
resetObselCollection(obselsCollection:ArrayCollection = null):void
LayoutNode
Property Detail
_timelineproperty
public var _timeline:Timeline

A reference to the timeline

layoutXMLproperty 
layoutXML:XML

The XML descriptor of the sub-layout from this node.


Implementation
    public function get layoutXML():XML
    public function set layoutXML(value:XML):void
parentNodeproperty 
public var parentNode:LayoutNode

A reference to the parent node of this node. The children are browsed using the container method (getElementAt...) but we need this reference to walk up the tree.

titleComponentproperty 
public var titleComponent:SkinnableContainer

The visual component used to show the title part of the node. It is a container because titleComponent contains the titleComponent of the node children.

Method Detail
addChildAndTitle()method
public function addChildAndTitle(child:LayoutNode, index:int = -1):void

Parameters

child:LayoutNode
 
index:int (default = -1)

getElementByName()method 
public function getElementByName(name:String):LayoutNode

Return the layoutNode of a given name in the subtree of this node

Parameters

name:String

Returns
LayoutNode — the first element with a given 'name' in the children of this node
getTraceLineGroup()method 
public function getTraceLineGroup():TraceLineGroup

Returns
TraceLineGroup — the tracelinegroup containing this node
moveTraceline()method 
public function moveTraceline(child:LayoutNode, index:int = -1):void

Parameters

child:LayoutNode
 
index:int (default = -1)

onSourceChange()method 
public function onSourceChange(event:CollectionEvent):void

Parameters

event:CollectionEvent

removeChildAndTitle()method 
public function removeChildAndTitle(child:LayoutNode):void

Remove a child (mostly Traceline)

Parameters

child:LayoutNode

resetObselCollection()method 
public function resetObselCollection(obselsCollection:ArrayCollection = null):void

Parameters

obselsCollection:ArrayCollection (default = null)