Package | com.yworks.graph.drawing |
Class | public class TemplateStyleDataContext |
Inheritance | TemplateStyleDataContext Object |
Implements | ILookup, flash.events.IEventDispatcher |
TemplateStyle
.
This is the context which is passed to the context property of a component
which is used as template for the TemplateStyle
.
Property | Defined By | ||
---|---|---|---|
canvas : CanvasComponent
Yields the CanvasComponent. | TemplateStyleDataContext | ||
displayObjectContext : IDisplayObjectContext
The IDisplayObjectContext this context is created for. | TemplateStyleDataContext | ||
modelItem : IModelItem
Gets the model item for which this context object has been created for. | TemplateStyleDataContext | ||
selected : Boolean
Whether the model item associated with this context is selected. | TemplateStyleDataContext | ||
style : TemplateStyle
Yields the style that is associated with this context instance. | TemplateStyleDataContext | ||
styleTag : Object
The user tag of the style that is associated
with this context instance. | TemplateStyleDataContext | ||
userTag : Object
The user tag associated with this instance. | TemplateStyleDataContext |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | TemplateStyleDataContext | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void | TemplateStyleDataContext | ||
dispatchEvent(event:Event):Boolean | TemplateStyleDataContext | ||
hasEventListener(type:String):Boolean | TemplateStyleDataContext | ||
lookup(type:Class):Object | TemplateStyleDataContext | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void | TemplateStyleDataContext | ||
updateSelectionState():void
Queries the canvas' graph selection for the selection state of the model item
associated with this instance and sets the selected property accordingly. | TemplateStyleDataContext | ||
willTrigger(type:String):Boolean | TemplateStyleDataContext |
canvas | property |
canvas:CanvasComponent
Yields the CanvasComponent
.
This property can be used as the source for data binding.
public function get canvas():CanvasComponent
public function set canvas(value:CanvasComponent):void
displayObjectContext | property |
displayObjectContext:IDisplayObjectContext
The IDisplayObjectContext
this context is created for.
This property can be used as the source for data binding.
public function get displayObjectContext():IDisplayObjectContext
public function set displayObjectContext(value:IDisplayObjectContext):void
See also
modelItem | property |
modelItem:IModelItem
Gets the model item for which this context object has been created for.
This property can be used as the source for data binding.
public function get modelItem():IModelItem
public function set modelItem(value:IModelItem):void
selected | property |
selected:Boolean
Whether the model item associated with this context is selected.
This property can be used as the source for data binding.
public function get selected():Boolean
public function set selected(value:Boolean):void
See also
style | property |
style:TemplateStyle
Yields the style that is associated with this context instance.
This property can be used as the source for data binding.
public function get style():TemplateStyle
public function set style(value:TemplateStyle):void
styleTag | property |
styleTag:Object
The user tag of the style that is associated with this context instance.
This property can be used as the source for data binding.
public function get styleTag():Object
public function set styleTag(value:Object):void
See also
userTag | property |
userTag:Object
The user tag associated with this instance.
Queries to this property are satisfied by the style's userTagProvider
This property can be used as the source for data binding.
public function get userTag():Object
public function set userTag(value:Object):void
See also
TemplateStyleDataContext | () | Constructor |
public function TemplateStyleDataContext(context:IDisplayObjectContext, modelItem:IModelItem, style:TemplateStyle)
Creates a new instance.
Parameterscontext:IDisplayObjectContext — The display object context.
| |
modelItem:IModelItem — The modelItem which is bound to that data context.
| |
style:TemplateStyle — The style which is bound to that data context.
|
addEventListener | () | method |
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
| |
priority:int (default = 0 )
| |
weakRef:Boolean (default = false )
|
dispatchEvent | () | method |
public function dispatchEvent(event:Event):Boolean
Parameters
event:Event |
Boolean |
hasEventListener | () | method |
public function hasEventListener(type:String):Boolean
Parameters
type:String |
Boolean |
lookup | () | method |
public function lookup(type:Class):Object
Parameters
type:Class |
Object |
removeEventListener | () | method |
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
|
updateSelectionState | () | method |
public function updateSelectionState():void
Queries the canvas' graph selection for the selection state of the model item
associated with this instance and sets the selected
property accordingly.
willTrigger | () | method |
public function willTrigger(type:String):Boolean
Parameters
type:String |
Boolean |