| Package | com.kapit.visualizer.renderer |
| Class | public class GenericSprite |
| Inheritance | GenericSprite GenericObject mx.core.UIComponent |
| Implements | IGenericItem |
ItemRenderer
to visually represent its informational content (data attribute). In the case where this IGenericItem
have logical children (expandCollapseChildren), the expand/collapse options are enabled and links status
(logical or direct) are automatically updated.
| Property | Defined by | ||
|---|---|---|---|
![]() | allowCollapseExpand : Boolean
Indicator if the Visualizer element should have an Expand/Collapse behaviour.
| GenericObject | |
![]() | buttonPlacement : String
Expand Collapse Button Placement.
| GenericObject | |
![]() | clickFilters : Array | GenericObject | |
| CLICK_GLOW_DATA : Object [static]
| GenericSprite | ||
![]() | collapseButtonClass : Class
Collapse Icon shown when the node is expanded.
| GenericObject | |
![]() | COLLAPSE_GROUP : uint = 3 [static]
"Group children are collapsed" Flag.
| GenericObject | |
![]() | collapseParent : GenericObject
Parent of the Visualizer element if there is any.
| GenericObject | |
![]() | COLLAPSE_SPRITE : uint = 0 [static]
"Sprite children are collapsed" Flag.
| GenericObject | |
![]() | collpaseOverButtonClass : Class
Collapse Icon shown when the node is expanded and the Expand/Collapse Button is rolled over.
| GenericObject | |
![]() | connectedElements : Dictionary | GenericObject | |
![]() | considerClick : Boolean
Indicator if Click events should be listened
| GenericObject | |
![]() | considerDoubleClick : Boolean
Indicator if Double Click events should be listened
| GenericObject | |
![]() | considerRollOut : Boolean
Indicator if Roll Out events should be listened
| GenericObject | |
![]() | considerRollOver : Boolean
Indicator if Roll Over events should be listened
| GenericObject | |
![]() | data : Object | GenericObject | |
![]() | decorator : Sprite
Visualizer element decorator (Image, TextField, animation....)
| GenericObject | |
| DEFAULT_DROP_SHADOW : Object [static]
| GenericSprite | ||
| DEFAULT_GLOW_DATA : Object [static]
| GenericSprite | ||
![]() | expandButtonClass : Class
Expand Icon shown when the node is collapsed.
| GenericObject | |
![]() | expandCollapseElements : Array
Visualizer element collapse/expand children.
| GenericObject | |
![]() | EXPAND_GROUP : uint = 4 [static]
"Group children are expanded" Flag.
| GenericObject | |
![]() | expandOverButtonClass : Class
Expand Icon shown when the node is collapsed and the Expand/Collapse Button is rolled over.
| GenericObject | |
![]() | EXPAND_SPRITE : uint = 1 [static]
"Sprite children are expanded" Flag.
| GenericObject | |
| filters : Array [write-only]
| GenericSprite | ||
| height : Number | GenericSprite | ||
![]() | highlightFilters : Array | GenericObject | |
![]() | idleFilers : Array | GenericObject | |
![]() | IDLE_GROUP : uint = 5 [static]
"Group with no Expand/Collapse functionality" Flag..
| GenericObject | |
![]() | IDLE_SPRITE : uint = 2 [static]
"Sprite with no Expand/Collapse functionality" Flag.
| GenericObject | |
| isMoveable : Boolean
Indicator if the sprite can be dragged or moved.
| GenericSprite | ||
| isSelected : Boolean | GenericSprite | ||
| itemRenderer : Object
The custom item renderer for the sprite.
| GenericSprite | ||
![]() | kDataItem : KDataItem | GenericObject | |
| level : uint | GenericSprite | ||
![]() | LINK : uint = 6 [static]
Link Flag.
| GenericObject | |
| LINKED_GLOW_DATA : Object [static]
| GenericSprite | ||
![]() | links : Array
Links to which a GenericSprite or a GenericGroup is connected.
| GenericObject | |
![]() | lock : Boolean | GenericObject | |
| loops : Array | GenericSprite | ||
![]() | manager : IManager
Visualizer element manager.
| GenericObject | |
| oldIdleFilters : Array | GenericSprite | ||
![]() | showExpandCollapseButton : Boolean | GenericObject | |
![]() | type : uint
Visualizer element type indicating behavioural state.
| GenericObject | |
![]() | UID : String
Visualizer element Unique ID.
| GenericObject | |
![]() | view : GenericView
Viewer to which the Visualizer element belongs
| GenericObject | |
| width : Number | GenericSprite | ||
| Method | Defined by | ||
|---|---|---|---|
|
GenericSprite(view:GenericView)
Constructor.
| GenericSprite | ||
|
addExpandCollapsedElement(child:GenericObject, collapsed:Boolean = true):void
Adds an expand/Collapse child to the sprite.
| GenericSprite | ||
|
animatedCollapse(collapsedElements:Array, recursiveCollpase:Boolean = true, parent:GenericObject = null, noEvent:Boolean = false, tweeners:Array = null, internalCollapse:Boolean = false, doAnimation:Boolean = true):void
Handles an animated collapse.
| GenericSprite | ||
|
collapse(withAnimation:Boolean = false, recursiveCollpase:Boolean = true, parent:GenericObject = null, noEvent:Boolean = false, doAnimation:Boolean = true):Array
Collapses and hides the children elements (if they exist) and dispatches an COLLAPSED_ELEMENTS event with reference to the collapsed elements.
| GenericSprite | ||
|
expand(noEvent:Boolean = false):void
Expands and displays the children elements (if they exist) and dispatches an EXAPNDED_ELEMENTS event with reference to the expanded elements.
| GenericSprite | ||
|
Returns the other link extremity given one valid link.
| GenericSprite | ||
![]() |
initListeners(considerCLICK:Boolean = true, considerDoubleCLICK:Boolean = true, considerRollOUT:Boolean = true, considerRollOVER:Boolean = true, allowCollapseEXPAND:Boolean = true):void
nitialises and registers Visualizer element listeners.
| GenericObject | |
|
initSprite(container:UIComponent, spriteManager:IManager, renderer:Object, uid:String = null, parent:GenericObject = null, type:uint = 2):void
nitializes the sprite, renderers it graphically according to its
itemRenderer and adds it to its container. | GenericSprite | ||
|
removeExpandCollapsedElement(child:GenericObject):void
Removes an expand/Collapse child from the sprite.
| GenericSprite | ||
![]() |
setPlacement(rectangle:Rectangle, updateReferences:Boolean = false):void
Sets the Visualizer element spatial parameters and updates its environment (links, decorators...).
| GenericObject | |
|
staticCollapse(collapsedElements:Array, recursiveCollpase:Boolean = true, parent:GenericObject = null, noEvent:Boolean = false):void
Performs a collapse of the
GenericSprite without performing animation. | GenericSprite | ||
![]() |
updateExpandButtonPlacement():void
| GenericObject | |
|
updateLinks():void
Updates in/out sprite links path according to its actual coordinates and redraws thesse links.
| GenericSprite | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
commitProperties():void
| GenericObject | |
![]() |
handleClickEvent(event:Event):void
Handles click event if considered.
| GenericObject | |
![]() |
handleDoubleClickEvent(event:Event):void
Handles double click event if considered.
| GenericObject | |
![]() |
handleRollOutEvent(event:Event):void
Handles roll out event if considered.
| GenericObject | |
![]() |
handleRollOverEvent(event:Event):void
Handles roll over event if considered.
| GenericObject | |
|
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
| GenericSprite | ||
| CLICK_GLOW_DATA | property |
public static var CLICK_GLOW_DATA:Object
| DEFAULT_DROP_SHADOW | property |
public static var DEFAULT_DROP_SHADOW:Object
| DEFAULT_GLOW_DATA | property |
public static var DEFAULT_GLOW_DATA:Object
| filters | property |
filters:Array [write-only]Implementation
public function set filters(value:Array):void
| height | property |
height:Number [read-write]Implementation
public function get height():Number
public function set height(value:Number):void
| isMoveable | property |
isMoveable:Boolean [read-write]Indicator if the sprite can be dragged or moved.
Implementation public function get isMoveable():Boolean
public function set isMoveable(value:Boolean):void
| isSelected | property |
isSelected:Boolean [read-write]Implementation
public function get isSelected():Boolean
public function set isSelected(value:Boolean):void
| itemRenderer | property |
itemRenderer:Object [read-write]The custom item renderer for the sprite. No default item renderer is defined. Custom Item renderer can be defined at initialisation time or in the IContentFactory associated with the view.
Implementation public function get itemRenderer():Object
public function set itemRenderer(value:Object):void
| level | property |
level:uint [read-write]Implementation
public function get level():uint
public function set level(value:uint):void
| LINKED_GLOW_DATA | property |
public static var LINKED_GLOW_DATA:Object
| loops | property |
public var loops:Array
| oldIdleFilters | property |
public var oldIdleFilters:Array
| width | property |
width:Number [read-write]Implementation
public function get width():Number
public function set width(value:Number):void
| GenericSprite | () | constructor |
public function GenericSprite(view:GenericView)Constructor.
Parametersview:GenericView — View to which this link belongs.
|
| addExpandCollapsedElement | () | method |
public function addExpandCollapsedElement(child:GenericObject, collapsed:Boolean = true):voidAdds an expand/Collapse child to the sprite. The child can be added in a collapsed or expanded status
Parameterschild:GenericObject — Child GenericSprite.
|
|
collapsed:Boolean (default = true) — Parent state after adding the element.
|
| animatedCollapse | () | method |
public function animatedCollapse(collapsedElements:Array, recursiveCollpase:Boolean = true, parent:GenericObject = null, noEvent:Boolean = false, tweeners:Array = null, internalCollapse:Boolean = false, doAnimation:Boolean = true):voidHandles an animated collapse.
ParameterscollapsedElements:Array — indicates if collapse process must be recursive, meaning that it collapses all its subTree.
|
|
recursiveCollpase:Boolean (default = true) — Collapse action parent (used only for internal recursive collapse). When calling this method, this parameter must
be ignored.
|
|
parent:GenericObject (default = null) — Indicates if the method should dispatch a a ELEMENTS_EXPANDED_COLLAPSED event.
|
|
noEvent:Boolean (default = false) — Tweeners used for animation.
|
|
tweeners:Array (default = null) — Indicates if the collapse action is under a parent collapse process.
|
|
internalCollapse:Boolean (default = false) |
|
doAnimation:Boolean (default = true) |
| collapse | () | method |
public function collapse(withAnimation:Boolean = false, recursiveCollpase:Boolean = true, parent:GenericObject = null, noEvent:Boolean = false, doAnimation:Boolean = true):ArrayCollapses and hides the children elements (if they exist) and dispatches an COLLAPSED_ELEMENTS event with reference to the collapsed elements.
ParameterswithAnimation:Boolean (default = false) — Collapse elements with animation.
|
|
recursiveCollpase:Boolean (default = true) — indicates if collapse process must be recursive, meaning that it collapses all its subTree.
|
|
parent:GenericObject (default = null) — Collapse action parent (used only for internal recursive collapse). When calling this method, this parameter must
be ignored.
|
|
noEvent:Boolean (default = false) — Indicates if the method should dispatch a a ELEMENTS_EXPANDED_COLLAPSED event.
|
|
doAnimation:Boolean (default = true) |
Array — Collapsed Elements.
|
| expand | () | method |
public function expand(noEvent:Boolean = false):voidExpands and displays the children elements (if they exist) and dispatches an EXAPNDED_ELEMENTS event with reference to the expanded elements.
ParametersnoEvent:Boolean (default = false) — Indicates if the method should dispatch a a ELEMENTS_EXPANDED_COLLAPSED event.
|
| getOtherSprite | () | method |
public function getOtherSprite(link:GenericLink):GenericObjectReturns the other link extremity given one valid link.
Parameterslink:GenericLink — Link connecting the sprite to another extremity.
|
GenericObject —
Link extremity.
|
| initSprite | () | method |
public function initSprite(container:UIComponent, spriteManager:IManager, renderer:Object, uid:String = null, parent:GenericObject = null, type:uint = 2):void
nitializes the sprite, renderers it graphically according to its itemRenderer and adds it to its container.
container:UIComponent — Container to which this sprite belongs.
|
|
spriteManager:IManager — Sprite manager that controls dispatched events and link behaviour (controller).
|
|
renderer:Object — Item renderer of the sprite.
|
|
uid:String (default = null) — Unique Identifier of the sprite. If null, a sprite UID will be assigned by RendererFactory.
|
|
parent:GenericObject (default = null) — Collapse/Expand Parent controlling the visibility of the sprite.
|
|
type:uint (default = 2) — Sprite type (EXPAND_SPRITE, COLLAPSE_SPRITE, or IDLE_SPRITE).
|
| removeExpandCollapsedElement | () | method |
public function removeExpandCollapsedElement(child:GenericObject):voidRemoves an expand/Collapse child from the sprite.
Parameterschild:GenericObject |
| staticCollapse | () | method |
public function staticCollapse(collapsedElements:Array, recursiveCollpase:Boolean = true, parent:GenericObject = null, noEvent:Boolean = false):void
Performs a collapse of the GenericSprite without performing animation.
collapsedElements:Array — indicates if collapse process must be recursive, meaning that it collapses all its subTree.
|
|
recursiveCollpase:Boolean (default = true) — Collapse action parent (used only for internal recursive collapse). When calling this method, this parameter must
be ignored.
|
|
parent:GenericObject (default = null) — Indicates if the method should dispatch a a ELEMENTS_EXPANDED_COLLAPSED event.
|
|
noEvent:Boolean (default = false) |
| updateDisplayList | () | method |
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number |
|
unscaledHeight:Number |
| updateLinks | () | method |
public override function updateLinks():voidUpdates in/out sprite links path according to its actual coordinates and redraws thesse links.