| Package | com.ithaca.timeline |
| Class | public class TraceLine |
| Inheritance | TraceLine LayoutNode spark.components.SkinnableContainer |
Default MXML PropertymxmlContentFactory
See also
| Property | Defined By | ||
|---|---|---|---|
| autohide : Boolean = false | TraceLine | ||
| lastRendererGap : Number | TraceLine | ||
| lastRendererHeight : Number | TraceLine | ||
![]() | layoutXML : XML
The XML descriptor of the sub-layout from this node. | LayoutNode | |
| _obsels : ArrayCollection | TraceLine | ||
![]() | parentNode : LayoutNode
A reference to the parent node of this node. | LayoutNode | |
| selector : ISelector | TraceLine | ||
| sourceStr : String = trace | TraceLine | ||
![]() | _timeline : Timeline
A reference to the timeline
| LayoutNode | |
| title : String
Sets the title (but not the name) of the Traceline
| TraceLine | ||
![]() | titleComponent : SkinnableContainer
The visual component used to show the title part of the node. | LayoutNode | |
| Method | Defined By | ||
|---|---|---|---|
TraceLine(tl:Timeline, tlTitle:String = null, tlName:String = null, tlSelector:ISelector = null, tlSource:String = null, tlSkinClass:String = null)
Create a new Traceline
| TraceLine | ||
acceptObsel(obsel:Obsel):Boolean
Check if an obsel matches the selector
| TraceLine | ||
![]() | addChildAndTitle(child:LayoutNode, index:int = -1):void | LayoutNode | |
addObsel(obsel:Obsel):void
Add an obsel in the obsel collection
| TraceLine | ||
getCollectionSource():ArrayCollection | TraceLine | ||
![]() | getElementByName(name:String):LayoutNode
Return the layoutNode of a given name in the subtree of this node
| LayoutNode | |
getParentTraceLines():Array
Return an Array containing the parent tracelines
| TraceLine | ||
![]() | LayoutNode | ||
getTraceLinePath():Array
Return an Array containing the path to the traceline. | TraceLine | ||
getVisibleChildrenNumber():Number
Compute the number of traceline children which are not hidden ; used to know if the open/close button must be visible. | TraceLine | ||
isOpen():Boolean
Indicate wether the Traceline is open/expanded or not. | TraceLine | ||
![]() | moveTraceline(child:LayoutNode, index:int = -1):void | LayoutNode | |
onSourceChange(event:CollectionEvent):void [override]
Handle an obsel collection event that occurs in the source collection
| TraceLine | ||
![]() | removeChildAndTitle(child:LayoutNode):void
Remove a child (mostly Traceline)
| LayoutNode | |
removeObsel(obsel:Obsel):void
Remove an obsel from the obsel collection
| TraceLine | ||
resetObselCollection(obselsCollection:ArrayCollection = null):void [override]
Rebuild the obsel collection from source
| TraceLine | ||
setToVisible(visible:Boolean):void
Show or hide the traceline and its children according to the parameter. | TraceLine | ||
| _obsels | property |
public var _obsels:ArrayCollection| autohide | property |
public var autohide:Boolean = false| lastRendererGap | property |
public var lastRendererGap:Number| lastRendererHeight | property |
public var lastRendererHeight:Number| selector | property |
selector:ISelector public function get selector():ISelector public function set selector(value:ISelector):void| sourceStr | property |
public var sourceStr:String = trace| title | property |
title:StringSets the title (but not the name) of the Traceline
public function get title():String public function set title(value:String):void| TraceLine | () | Constructor |
public function TraceLine(tl:Timeline, tlTitle:String = null, tlName:String = null, tlSelector:ISelector = null, tlSource:String = null, tlSkinClass:String = null)Create a new Traceline
Parameterstl:Timeline — the timeline containing the traceline
| |
tlTitle:String (default = null) — the title (and name/id) of the traceline. It is used by CSS selectors.
| |
tlName:String (default = null) — the traceline selector
| |
tlSelector:ISelector (default = null) — the traceline obsel source
| |
tlSource:String (default = null) — FIXME
| |
tlSkinClass:String (default = null) |
| acceptObsel | () | method |
public function acceptObsel(obsel:Obsel):BooleanCheck if an obsel matches the selector
Parameters
obsel:Obsel |
Boolean — true if the obsel matches the selector or if there's no selector ; otherwise return false.
|
| addObsel | () | method |
public function addObsel(obsel:Obsel):voidAdd an obsel in the obsel collection
Parameters
obsel:Obsel |
| getCollectionSource | () | method |
public function getCollectionSource():ArrayCollectionReturns
ArrayCollection — the obsels collection used as source (before selection) by the traceline ; it can be the timeline trace or the obsels collection of the parent node
|
| getParentTraceLines | () | method |
public function getParentTraceLines():ArrayReturn an Array containing the parent tracelines
ReturnsArray |
| getTraceLinePath | () | method |
public function getTraceLinePath():ArrayReturn an Array containing the path to the traceline. It is formed by the concatenation of the traceline parents with the traceline itself.
ReturnsArray |
| getVisibleChildrenNumber | () | method |
public function getVisibleChildrenNumber():NumberCompute the number of traceline children which are not hidden ; used to know if the open/close button must be visible.
This is because a node could have children in autohide mode and then the open button must be hidden
ReturnsNumber — the number of visible children
|
| isOpen | () | method |
public function isOpen():BooleanIndicate wether the Traceline is open/expanded or not.
ReturnsBoolean — true if the traceline is open
|
| onSourceChange | () | method |
override public function onSourceChange(event:CollectionEvent):voidHandle an obsel collection event that occurs in the source collection
Parameters
event:CollectionEvent |
| removeObsel | () | method |
public function removeObsel(obsel:Obsel):voidRemove an obsel from the obsel collection
Parameters
obsel:Obsel |
| resetObselCollection | () | method |
override public function resetObselCollection(obselsCollection:ArrayCollection = null):voidRebuild the obsel collection from source
Parameters
obselsCollection:ArrayCollection (default = null) |
| setToVisible | () | method |
public function setToVisible(visible:Boolean):voidShow or hide the traceline and its children according to the parameter.
Parameters
visible:Boolean — if true the TraceLine is visible; otherwise it's hidden.
|