| Package | com.degrafa.geometry.repeaters |
| Class | public class PolygonRepeater |
| Inheritance | PolygonRepeater Repeater Geometry DegrafaObject |
See also
| 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]
The tight bounds of this element as represented by a Rectangle object.
| PolygonRepeater | ||
![]() | count : Number
The number of times to repeat the geometry.
| Repeater | |
| data : String [write-only]
Polygon short hand data value.
| PolygonRepeater | ||
![]() | 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
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
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 | |
![]() | offsetX : Number
The offset of the x-axis of each geometry object.
| Repeater | |
![]() | offsetY : Number
The offset of the y-axis of each geometry object.
| Repeater | |
| pointCollection : GraphicPointCollection
[read-only]
Access to the Degrafa point collection object for this polyline.
| PolygonRepeater | ||
| points : Array
A array of points that describe this polygon.
| PolygonRepeater | ||
![]() | 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 | |
| x : Number
The x-coordinate of the upper left point of the first polygon.
| PolygonRepeater | ||
| y : Number
The y-coordinate of the upper left point the first polygon.
| PolygonRepeater | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
| DegrafaObject | |
| objectStack : Array
An Array of geometry objects that make up this repeater.
| PolygonRepeater | ||
| Method | Defined by | ||
|---|---|---|---|
|
PolygonRepeater(points:Array = null, count:Number = 0, offsetX:Number = 0, offsetY:Number = 0)
Constructor.
| PolygonRepeater | ||
![]() |
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.
| PolygonRepeater | ||
![]() |
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.
| PolygonRepeater | ||
![]() |
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 | |
| bounds | property |
bounds:Rectangle [read-only]The tight bounds of this element as represented by a Rectangle object.
This property can be used as the source for data binding.
Implementation public function get bounds():Rectangle
| data | property |
data:String [write-only]Polygon short hand data value.
The polygon data property expects a list of space seperated points. For example "10,20 30,35".
This property can be used as the source for data binding.
Implementation public function set data(value:String):void
See also
| objectStack | property |
protected var objectStack:ArrayAn Array of geometry objects that make up this repeater.
| pointCollection | property |
pointCollection:GraphicPointCollection [read-only]Access to the Degrafa point collection object for this polyline.
This property can be used as the source for data binding.
Implementation public function get pointCollection():GraphicPointCollection
| points | property |
points:Array [read-write]A array of points that describe this polygon.
This property can be used as the source for data binding.
Implementation public function get points():Array
public function set points(value:Array):void
| x | property |
x:Number [read-write]The x-coordinate of the upper left point of the first polygon. If not specified a default value of 0 is used.
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]The y-coordinate of the upper left point the first polygon. If not specified a default value of 0 is used.
This property can be used as the source for data binding.
Implementation public function get y():Number
public function set y(value:Number):void
| PolygonRepeater | () | constructor |
public function PolygonRepeater(points:Array = null, count:Number = 0, offsetX:Number = 0, offsetY:Number = 0)Constructor.
The polygon constructor accepts an argument that describes it's points, as well as 3 other optional arguments for offset and count.
Parameterspoints:Array (default = null) — An array of points describing the polygon.
|
|
count:Number (default = 0) — A number indicating the repeat count of polygons.
|
|
offsetX:Number (default = 0) — A number indicating the x-axis offset of each polygon repeated.
|
|
offsetY:Number (default = 0) — A number indicating the y-axis offset of each polygon repeated.
|
| draw | () | method |
public override 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.
|
| preDraw | () | method |
public override 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.