| Package | com.degrafa.geometry |
| Class | public class Geometry |
| Inheritance | Geometry DegrafaObject |
| Implements | IDegrafaObject, IGeometryComposition |
| Subclasses | AdvancedRectangle, Circle, CubicBezier, Ellipse, EllipticalArc, GeometryComposition, HorizontalLine, Line, Move, Path, Polygon, Polyline, QuadraticBezier, RegularRectangle, Repeater, RoundedRectangle, RoundedRectangleComplex, VerticalLine |
Default MXML Propertygeometry
| Property | Defined by | ||
|---|---|---|---|
| autoClearGraphicsTarget : Boolean
When using a graphicsTarget and if this property is set to true
the draw phase will clear the graphics context before drawing.
| Geometry | ||
| bounds : Rectangle [read-only]
| Geometry | ||
| data : String
Allows a short hand property setting that is
specific to and parsed by each geometry object.
| Geometry | ||
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : Boolean
Enable events for this object.
| DegrafaObject | |
| fill : IGraphicsFill
Defines the fill object that will be used for
rendering this geometry object.
| Geometry | ||
| geometry : Array
A array of IGeometryComposition objects.
| Geometry | ||
| geometryCollection : GeometryCollection
[read-only]
Access to the Degrafa geometry collection object for this geometry object.
| Geometry | ||
| graphicsTarget : Array
One or more display object's that this Geometry is to be drawn to.
| Geometry | ||
| graphicsTargetCollection : DisplayObjectCollection
[read-only]
Access to the Degrafa target collection object for this geometry object.
| Geometry | ||
![]() | hasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
| DegrafaObject | |
![]() | id : String
The identifier used by document to refer to this object.
| DegrafaObject | |
| invalidated : Boolean
Specifies whether this object is to be re calculated
on the next cycle.
| Geometry | ||
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
| state : String
The state at which to draw this object
| Geometry | ||
| stateEvent : String
The state event at which to draw this object
| Geometry | ||
| stroke : IGraphicsStroke
Defines the stroke object that will be used for
rendering this geometry object.
| Geometry | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
| DegrafaObject | |
![]() |
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
| DegrafaObject | |
![]() |
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.
| DegrafaObject | |
|
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for geometry objects.
| Geometry | ||
|
endDraw(graphics:Graphics):void
Ends the draw phase for geometry objects.
| Geometry | ||
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| DegrafaObject | |
![]() |
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| DegrafaObject | |
![]() |
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.
| DegrafaObject | |
|
preDraw():void
Performs any pre calculation that is required to successfully render
this element.
| Geometry | ||
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| DegrafaObject | |
![]() |
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
| DegrafaObject | |
| autoClearGraphicsTarget | property |
autoClearGraphicsTarget:Boolean [read-write]When using a graphicsTarget and if this property is set to true the draw phase will clear the graphics context before drawing.
This property can be used as the source for data binding.
Implementation public function get autoClearGraphicsTarget():Boolean
public function set autoClearGraphicsTarget(value:Boolean):void
| bounds | property |
bounds:Rectangle [read-only]This property can be used as the source for data binding.
Implementation public function get bounds():Rectangle
| data | property |
data:String [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():String
public function set data(value:String):void
| fill | property |
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
| geometry | property |
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
| geometryCollection | property |
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
| graphicsTarget | property |
graphicsTarget:Array [read-write]One or more display object's that this Geometry is to be drawn to. During the drawing phase this is tested first. If items have been defined the drawing of the geometry is done on each item(s) graphics context.
This property can be used as the source for data binding.
Implementation public function get graphicsTarget():Array
public function set graphicsTarget(value:Array):void
| graphicsTargetCollection | property |
graphicsTargetCollection:DisplayObjectCollection [read-only]Access to the Degrafa target collection object for this geometry object.
This property can be used as the source for data binding.
Implementation public function get graphicsTargetCollection():DisplayObjectCollection
| invalidated | property |
public var invalidated:BooleanSpecifies whether this object is to be re calculated on the next cycle.
| state | property |
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
| stateEvent | property |
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
| stroke | property |
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
| 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.
|
| preDraw | () | method |
public function preDraw():voidPerforms any pre calculation that is required to successfully render this element. Including bounds calculations and lower level drawing command storage. Each geometry object overrides this and is responsible for it's own pre calculation cycle.