Packagecom.degrafa.skins
Classpublic class GraphicBorderSkin
InheritanceGraphicBorderSkin Inheritance mx.skins.Border
ImplementsIDegrafaStateClient, IGraphicSkin

GraphicBorderSkin is an extension of Border for use declarativly.

Default MXML Propertygeometry



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