Packagecom.degrafa.skins
Classpublic class GraphicPanelSkin
InheritanceGraphicPanelSkin Inheritance mx.skins.halo.PanelSkin
ImplementsIDegrafaStateClient, IGraphicSkin

Default MXML Propertygeometry



Public Properties
 PropertyDefined by
  currentState : String
GraphicPanelSkin
  data : Object
Allows a short hand property setting that is specific to and parsed by each geometry object.
GraphicPanelSkin
  enableEvents : Boolean
Enable events for this object.
GraphicPanelSkin
  fill : IGraphicsFill
Defines the fill object that will be used for rendering this geometry object.
GraphicPanelSkin
  fillCollection : FillCollection
[read-only] Access to the Degrafa fill collection object for this graphic object.
GraphicPanelSkin
  fills : Array
A array of IGraphicsFill objects.
GraphicPanelSkin
  geometry : Array
A array of IGeometryComposition objects.
GraphicPanelSkin
  geometryCollection : GeometryCollection
[read-only] Access to the Degrafa geometry collection object for this geometry object.
GraphicPanelSkin
  hasEventManager : Boolean
[read-only] Tests to see if a EventDispatcher instance has been created for this object.
GraphicPanelSkin
  isInitialized : Boolean
[read-only]
GraphicPanelSkin
  skinHeight : Number = 0
GraphicPanelSkin
  skinWidth : Number = 0
GraphicPanelSkin
  state : String
The state at which to draw this object
GraphicPanelSkin
  stateEvent : String
The state event at which to draw this object
GraphicPanelSkin
  states : Array
GraphicPanelSkin
  stroke : IGraphicsStroke
Defines the stroke object that will be used for rendering this geometry object.
GraphicPanelSkin
  strokeCollection : StrokeCollection
[read-only] Access to the Degrafa stroke collection object for this graphic object.
GraphicPanelSkin
  strokes : Array
A array of IStroke objects.
GraphicPanelSkin
  surpressEventProcessing : Boolean
Temporarily suppress event processing for this object.
GraphicPanelSkin
  triggers : Array
GraphicPanelSkin
Public Methods
 MethodDefined by
  
GraphicPanelSkin
  
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
GraphicPanelSkin
  
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
GraphicPanelSkin
  
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for graphic objects.
GraphicPanelSkin
  
endDraw(graphics:Graphics):void
Ends the draw phase for geometry objects.
GraphicPanelSkin
  
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
GraphicPanelSkin
Protected Methods
 MethodDefined by
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Draws the object and/or sizes and positions its children.
GraphicPanelSkin
Property detail
currentStateproperty
currentState:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get currentState():String
    public function set currentState(value:String):void
dataproperty 
data:Object  [read-write]

Allows a short hand property setting that is specific to and parsed by each geometry object. Look at the various geometry objects to learn what this setting requires.

This property can be used as the source for data binding.

Implementation
    public function get data():Object
    public function set data(value:Object):void
enableEventsproperty 
enableEvents:Boolean  [read-write]

Enable events for this object.

This property can be used as the source for data binding.

Implementation
    public function get enableEvents():Boolean
    public function set enableEvents(value:Boolean):void
fillproperty 
fill:IGraphicsFill  [read-write]

Defines the fill object that will be used for rendering this geometry object.

This property can be used as the source for data binding.

Implementation
    public function get fill():IGraphicsFill
    public function set fill(value:IGraphicsFill):void
fillCollectionproperty 
fillCollection:FillCollection  [read-only]

Access to the Degrafa fill collection object for this graphic object.

This property can be used as the source for data binding.

Implementation
    public function get fillCollection():FillCollection
fillsproperty 
fills:Array  [read-write]

A array of IGraphicsFill objects.

This property can be used as the source for data binding.

Implementation
    public function get fills():Array
    public function set fills(value:Array):void
geometryproperty 
geometry:Array  [read-write]

A array of IGeometryComposition objects.

This property can be used as the source for data binding.

Implementation
    public function get geometry():Array
    public function set geometry(value:Array):void
geometryCollectionproperty 
geometryCollection:GeometryCollection  [read-only]

Access to the Degrafa geometry collection object for this geometry object.

This property can be used as the source for data binding.

Implementation
    public function get geometryCollection():GeometryCollection
hasEventManagerproperty 
hasEventManager:Boolean  [read-only]

Tests to see if a EventDispatcher instance has been created for this object.

This property can be used as the source for data binding.

Implementation
    public function get hasEventManager():Boolean
isInitializedproperty 
isInitialized:Boolean  [read-only]

This property can be used as the source for data binding.

Implementation
    public function get isInitialized():Boolean
skinHeightproperty 
public var skinHeight:Number = 0

This property can be used as the source for data binding.

skinWidthproperty 
public var skinWidth:Number = 0

This property can be used as the source for data binding.

stateproperty 
state:String  [read-write]

The state at which to draw this object

This property can be used as the source for data binding.

Implementation
    public function get state():String
    public function set state(value:String):void
stateEventproperty 
stateEvent:String  [read-write]

The state event at which to draw this object

This property can be used as the source for data binding.

Implementation
    public function get stateEvent():String
    public function set stateEvent(value:String):void
statesproperty 
states:Array  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get states():Array
    public function set states(value:Array):void
strokeproperty 
stroke:IGraphicsStroke  [read-write]

Defines the stroke object that will be used for rendering this geometry object.

This property can be used as the source for data binding.

Implementation
    public function get stroke():IGraphicsStroke
    public function set stroke(value:IGraphicsStroke):void
strokeCollectionproperty 
strokeCollection:StrokeCollection  [read-only]

Access to the Degrafa stroke collection object for this graphic object.

This property can be used as the source for data binding.

Implementation
    public function get strokeCollection():StrokeCollection
strokesproperty 
strokes:Array  [read-write]

A array of IStroke objects.

This property can be used as the source for data binding.

Implementation
    public function get strokes():Array
    public function set strokes(value:Array):void
surpressEventProcessingproperty 
surpressEventProcessing:Boolean  [read-write]

Temporarily suppress event processing for this object.

This property can be used as the source for data binding.

Implementation
    public function get surpressEventProcessing():Boolean
    public function set surpressEventProcessing(value:Boolean):void
triggersproperty 
triggers:Array  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get triggers():Array
    public function set triggers(value:Array):void
Constructor detail
GraphicPanelSkin()constructor
public function GraphicPanelSkin()
Method detail
dispatchEvent()method
public override function dispatchEvent(event:Event):Boolean

Dispatches an event into the event flow.

Parameters
event:Event

Returns
Boolean

See also

EventDispatcher
dispatchPropertyChange()method 
public function dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean

Dispatches an property change event into the event flow.

Parameters
bubbles:Boolean (default = false)
 
property:Object (default = null)
 
oldValue:Object (default = null)
 
newValue:Object (default = null)
 
source:Object (default = null)

Returns
Boolean
draw()method 
public function draw(graphics:Graphics, rc:Rectangle):void

Begins the draw phase for graphic objects. All graphic objects override this to do their specific rendering.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for fill bounds.
endDraw()method 
public function endDraw(graphics:Graphics):void

Ends the draw phase for geometry objects.

Parameters
graphics:Graphics — The current Graphics context being drawn to.
initChange()method 
public function initChange(property:String, oldValue:Object, newValue:Object, source:Object):void

Helper function for dispatching property changes

Parameters
property:String
 
oldValue:Object
 
newValue:Object
 
source:Object
updateDisplayList()method 
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Draws the object and/or sizes and positions its children.

Parameters
unscaledWidth:Number
 
unscaledHeight:Number