| Package | com.degrafa.geometry.repeaters |
| Class | public class CubicBezierRepeater |
| Inheritance | CubicBezierRepeater 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.
| CubicBezierRepeater | ||
![]() | count : Number
The number of times to repeat the geometry.
| Repeater | |
| cx : Number
The x-coordinate of the first control point of the first curve.
| CubicBezierRepeater | ||
| cx1 : Number
The x-coordinate of the second control point of the first curve.
| CubicBezierRepeater | ||
| cy : Number
The y-coordinate of the first control point of the first curve.
| CubicBezierRepeater | ||
| cy1 : Number
The y-coordinate of the second control point of the first curve.
| CubicBezierRepeater | ||
| data : String [write-only]
CubicBezierRepeater short hand data value.
| CubicBezierRepeater | ||
![]() | 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 | |
| offsetCx : Number
The x-coordinate of the first control point of the repeated curves.
| CubicBezierRepeater | ||
| offsetCx1 : Number
The x-coordinate of the second control point of the repeated curves.
| CubicBezierRepeater | ||
| offsetCy : Number
The y-coordinate of the first control point of the repeated curves.
| CubicBezierRepeater | ||
| offsetCy1 : Number
The y-coordinate of the second control point of the repeated curves.
| CubicBezierRepeater | ||
![]() | offsetX : Number
The offset of the x-axis of each geometry object.
| Repeater | |
| offsetX1 : Number
The x-coordinate of the end point of the repeated curves.
| CubicBezierRepeater | ||
![]() | offsetY : Number
The offset of the y-axis of each geometry object.
| Repeater | |
| offsetY1 : Number
The y-coordinate of the end point of the repeated curves.
| CubicBezierRepeater | ||
![]() | 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 start point of the first curve.
| CubicBezierRepeater | ||
| x1 : Number
The x-coordinate of the end point of the first curve.
| CubicBezierRepeater | ||
| y : Number
The x-coordinate of the start point of the first curve.
| CubicBezierRepeater | ||
| y1 : Number
The y-coordinate of the end point of the first curve.
| CubicBezierRepeater | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
| DegrafaObject | |
| objectStack : Array
An Array of geometry objects that make up this repeater.
| CubicBezierRepeater | ||
| Method | Defined by | ||
|---|---|---|---|
|
CubicBezierRepeater(x:Number = 0, y:Number = 0, cx:Number = 0, cy:Number = 0, cx1:Number = 0, cy1:Number = 0, x1:Number = 0, y1:Number = 0, count:Number = 0, offsetX:Number = 0, offsetY:Number = 0, offsetX1:Number = 0, offsetY1:Number = 0, offsetCx:Number = 0, offsetCy:Number = 0, offsetCx1:Number = 0, offsetCy1:Number = 0)
Constructor.
| CubicBezierRepeater | ||
![]() |
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.
| CubicBezierRepeater | ||
![]() |
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.
| CubicBezierRepeater | ||
![]() |
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
| cx | property |
cx:Number [read-write]The x-coordinate of the first control point of the first curve. 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 cx():Number
public function set cx(value:Number):void
| cx1 | property |
cx1:Number [read-write]The x-coordinate of the second control point of the first curve. 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 cx1():Number
public function set cx1(value:Number):void
| cy | property |
cy:Number [read-write]The y-coordinate of the first control point of the first curve. 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 cy():Number
public function set cy(value:Number):void
| cy1 | property |
cy1:Number [read-write]The y-coordinate of the second control point of the first curve. 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 cy1():Number
public function set cy1(value:Number):void
| data | property |
data:String [write-only]CubicBezierRepeater short hand data value.
The Cubic Bézier Repeater data property expects exactly 8 values x, y, cx, cy, cx1, cy1, x1 and y1 separated by spaces.
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.
| offsetCx | property |
offsetCx:Number [read-write]The x-coordinate of the first control point of the repeated curves. 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 offsetCx():Number
public function set offsetCx(value:Number):void
| offsetCx1 | property |
offsetCx1:Number [read-write]The x-coordinate of the second control point of the repeated curves. 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 offsetCx1():Number
public function set offsetCx1(value:Number):void
| offsetCy | property |
offsetCy:Number [read-write]The y-coordinate of the first control point of the repeated curves. 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 offsetCy():Number
public function set offsetCy(value:Number):void
| offsetCy1 | property |
offsetCy1:Number [read-write]The y-coordinate of the second control point of the repeated curves. 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 offsetCy1():Number
public function set offsetCy1(value:Number):void
| offsetX1 | property |
offsetX1:Number [read-write]The x-coordinate of the end point of the repeated curves. 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 offsetX1():Number
public function set offsetX1(value:Number):void
| offsetY1 | property |
offsetY1:Number [read-write]The y-coordinate of the end point of the repeated curves. 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 offsetY1():Number
public function set offsetY1(value:Number):void
| x | property |
x:Number [read-write]The x-coordinate of the start point of the first curve. 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
| x1 | property |
x1:Number [read-write]The x-coordinate of the end point of the first curve. 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 x1():Number
public function set x1(value:Number):void
| y | property |
y:Number [read-write]The x-coordinate of the start point of the first curve. 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
| y1 | property |
y1:Number [read-write]The y-coordinate of the end point of the first curve. 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 y1():Number
public function set y1(value:Number):void
| CubicBezierRepeater | () | constructor |
public function CubicBezierRepeater(x:Number = 0, y:Number = 0, cx:Number = 0, cy:Number = 0, cx1:Number = 0, cy1:Number = 0, x1:Number = 0, y1:Number = 0, count:Number = 0, offsetX:Number = 0, offsetY:Number = 0, offsetX1:Number = 0, offsetY1:Number = 0, offsetCx:Number = 0, offsetCy:Number = 0, offsetCx1:Number = 0, offsetCy1:Number = 0)Constructor.
The Cubic Bézier Repeater constructor accepts 17 optional arguments that define it's start, end and controls points.
Parametersx:Number (default = 0) — A number indicating the starting x-axis coordinate.
|
|
y:Number (default = 0) — A number indicating the starting y-axis coordinate.
|
|
cx:Number (default = 0) — A number indicating the first control x-axis coordinate.
|
|
cy:Number (default = 0) — A number indicating the first control y-axis coordinate.
|
|
cx1:Number (default = 0) — A number indicating the second control x-axis coordinate.
|
|
cy1:Number (default = 0) — A number indicating the second control y-axis coordinate.
|
|
x1:Number (default = 0) — A number indicating the ending x-axis coordinate.
|
|
y1:Number (default = 0) — A number indicating the ending y-axis coordinate.
|
|
count:Number (default = 0) — A number indicating the number of times the cubic bézier is repeated.
|
|
offsetX:Number (default = 0) — A number indicating the starting x-axis coordinate offset of each repeated cubic bézier.
|
|
offsetY:Number (default = 0) — A number indicating the starting y-axis coordinate offset of each repeated cubic bézier.
|
|
offsetX1:Number (default = 0) — A number indicating the ending x-axis coordinate offset of each repeated cubic bézier.
|
|
offsetY1:Number (default = 0) — A number indicating the ending y-axis coordinate offset of each repeated cubic bézier.
|
|
offsetCx:Number (default = 0) — A number indicating the first control x-axis coordinate offset of each repeated cubic bézier.
|
|
offsetCy:Number (default = 0) — A number indicating the first control y-axis coordinate offset of each repeated cubic bézier.
|
|
offsetCx1:Number (default = 0) — A number indicating the second control x-axis coordinate offset of each repeated cubic bézier.
|
|
offsetCy1:Number (default = 0) — A number indicating the second control y-axis coordinate offset of each repeated cubic bézier.
|
| 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.