| Package | com.degrafa |
| Class | public class Graphic |
| Inheritance | Graphic flash.display.Sprite |
| Implements | mx.core.IMXMLObject |
| Subclasses | GeometryGroup, GraphicImage |
See also
| Property | Defined by | ||
|---|---|---|---|
| document : Object [read-only]
The MXML document that created this object.
| Graphic | ||
| enableEvents : Boolean
Enable events for this object.
| Graphic | ||
| fill : IGraphicsFill
Defines the fill object that will be used for
rendering this graphic object.
| Graphic | ||
| fillCollection : FillCollection
[read-only]
Access to the Degrafa fill collection object for this graphic object.
| Graphic | ||
| fills : Array
A array of IGraphicsFill objects.
| Graphic | ||
| hasEventManager : Boolean [read-only]
Tests to see if a EventDispatcher instance has been created for this object.
| Graphic | ||
| height : Number
Number that specifies the height, in pixels, in the target's coordinates.
| Graphic | ||
| id : String
The identifier used by document to refer to this object.
| Graphic | ||
| measuredHeight : Number [read-only]
The default height, in pixels.
| Graphic | ||
| measuredWidth : Number [read-only]
The default width, in pixels.
| Graphic | ||
| percentHeight : Number
Number that specifies the height as a percentage of the target.
| Graphic | ||
| percentWidth : Number
Number that specifies the width as a percentage of the target.
| Graphic | ||
| stroke : IGraphicsStroke
Defines the stroke object that will be used for
rendering this graphic object.
| Graphic | ||
| strokeCollection : StrokeCollection
[read-only]
Access to the Degrafa stroke collection object for this graphic object.
| Graphic | ||
| strokes : Array
A array of IStroke objects.
| Graphic | ||
| suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| Graphic | ||
| target : DisplayObjectContainer
A target DisplayObjectContainer that this graphic object should be added or drawn to.
| Graphic | ||
| width : Number
Number that specifies the width, in pixels, in the target's coordinates.
| Graphic | ||
| x : Number
Number that specifies the horizontal position, in pixels, within the target.
| Graphic | ||
| y : Number
Number that specifies the vertical position, in pixels, within the target.
| Graphic | ||
| Method | Defined by | ||
|---|---|---|---|
|
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| Graphic | ||
|
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.
| Graphic | ||
|
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for geometry objects.
| Graphic | ||
|
endDraw(graphics:Graphics):void
Ends the draw phase for geometry objects.
| Graphic | ||
|
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| Graphic | ||
|
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
| Graphic | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Graphic | ||||
| Graphic | ||||
| document | property |
document:Object [read-only]The MXML document that created this object.
This property can be used as the source for data binding.
Implementation public function get document():Object
| enableEvents | property |
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
| fill | property |
fill:IGraphicsFill [read-write]Defines the fill object that will be used for rendering this graphic 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
| fillCollection | property |
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
| fills | property |
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
| hasEventManager | property |
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
| height | property |
height:Number [read-write]Number that specifies the height, in pixels, in the target's coordinates.
This property can be used as the source for data binding.
Implementation public function get height():Number
public function set height(value:Number):void
| id | property |
id:String [read-write]The identifier used by document to refer to this object.
This property can be used as the source for data binding.
Implementation public function get id():String
public function set id(value:String):void
| measuredHeight | property |
measuredHeight:Number [read-only]The default height, in pixels.
This property can be used as the source for data binding.
Implementation public function get measuredHeight():Number
| measuredWidth | property |
measuredWidth:Number [read-only]The default width, in pixels.
This property can be used as the source for data binding.
Implementation public function get measuredWidth():Number
| percentHeight | property |
percentHeight:Number [read-write]Number that specifies the height as a percentage of the target.
This property can be used as the source for data binding.
Implementation public function get percentHeight():Number
public function set percentHeight(value:Number):void
| percentWidth | property |
percentWidth:Number [read-write]Number that specifies the width as a percentage of the target.
This property can be used as the source for data binding.
Implementation public function get percentWidth():Number
public function set percentWidth(value:Number):void
| stroke | property |
stroke:IGraphicsStroke [read-write]Defines the stroke object that will be used for rendering this graphic 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
| strokeCollection | property |
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
| strokes | property |
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
| suppressEventProcessing | property |
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
| target | property |
target:DisplayObjectContainer [read-write]A target DisplayObjectContainer that this graphic object should be added or drawn to.
This property can be used as the source for data binding.
Implementation public function get target():DisplayObjectContainer
public function set target(value:DisplayObjectContainer):void
| width | property |
width:Number [read-write]Number that specifies the width, in pixels, in the target's coordinates.
This property can be used as the source for data binding.
Implementation public function get width():Number
public function set width(value:Number):void
| x | property |
x:Number [read-write]Number that specifies the horizontal position, in pixels, within the target.
This property can be used as the source for data binding.
Implementation public function get x():Number
public function set x(value:Number):void
| y | property |
y:Number [read-write]Number that specifies the vertical position, in pixels, within the target.
This property can be used as the source for data binding.
Implementation public function get y():Number
public function set y(value:Number):void
| dispatchEvent | () | method |
public override function dispatchEvent(event:Event):BooleanDispatches an event into the event flow.
Parametersevent:Event |
Boolean |
See also
| dispatchPropertyChange | () | method |
public function dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):BooleanDispatches an property change event into the event flow.
Parametersbubbles:Boolean (default = false) |
|
property:Object (default = null) |
|
oldValue:Object (default = null) |
|
newValue:Object (default = null) |
|
source:Object (default = null) |
Boolean |
| draw | () | method |
public function draw(graphics:Graphics, rc:Rectangle):voidBegins the draw phase for geometry objects. All geometry objects override this to do their specific rendering.
Parametersgraphics:Graphics — The current context to draw to.
|
|
rc:Rectangle — A Rectangle object used for fill bounds.
|
| endDraw | () | method |
public function endDraw(graphics:Graphics):voidEnds the draw phase for geometry objects.
Parametersgraphics:Graphics — The current Graphics context being drawn to.
|
| initChange | () | method |
public function initChange(property:String, oldValue:Object, newValue:Object, source:Object):voidHelper function for dispatching property changes
Parametersproperty:String |
|
oldValue:Object |
|
newValue:Object |
|
source:Object |
| initialized | () | method |
public function initialized(document:Object, id:String):voidCalled after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
Parametersdocument:Object — The MXML document that created this object.
|
|
id:String — The identifier used by document to refer to this object.
|
| initialize | event |
| propertyChange | event |