Packagecom.degrafa
Classpublic class Surface
InheritanceSurface Inheritance mx.core.UIComponent

Surface is a simple UIComponent extension that allows Degrafa objects to be added to it's display list. Fills and strokes set here have no effect and only serve organizational purposes.

Default MXML PropertygraphicsData



Public Properties
 PropertyDefined by
  enableEvents : Boolean
Enable events for this object.
Surface
  fillCollection : FillCollection
[read-only] Access to the Degrafa fill collection object for this graphic object.
Surface
  fills : Array
A array of IGraphicsFill objects.
Surface
  graphicsCollection : GraphicsCollection
[read-only] Access to the Degrafa graphics collection object for this graphic object.
Surface
  graphicsData : Array
A array of IGraphic objects.
Surface
  hasEventManager : Boolean
[read-only] Tests to see if a EventDispatcher instance has been created for this object.
Surface
  strokeCollection : StrokeCollection
[read-only] Access to the Degrafa stroke collection object for this graphic object.
Surface
  strokes : Array
A array of IStroke objects.
Surface
  suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
Surface
Public Methods
 MethodDefined by
  
Surface
  
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
Surface
  
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.
Surface
  
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
Surface
Protected Methods
 MethodDefined by
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Draws the object and/or sizes and positions its children.
Surface
Property detail
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
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
graphicsCollectionproperty 
graphicsCollection:GraphicsCollection  [read-only]

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

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

Implementation
    public function get graphicsCollection():GraphicsCollection
graphicsDataproperty 
graphicsData:Array  [read-write]

A array of IGraphic objects. Objects of type GraphicText, GraphicImage and GeometryGroup are accepted and to this objects display list.

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

Implementation
    public function get graphicsData():Array
    public function set graphicsData(value:Array):void
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
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
suppressEventProcessingproperty 
suppressEventProcessing: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 suppressEventProcessing():Boolean
    public function set suppressEventProcessing(value:Boolean):void
Constructor detail
Surface()constructor
public function Surface()
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
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