| Package | com.degrafa.geometry |
| Class | public class Geometry |
| Inheritance | Geometry DegrafaObject |
| Implements | IDegrafaObject, IDegrafaStateClient, IGeometryComposition, mx.styles.ISimpleStyleClient |
| Subclasses | AdvancedRectangle, AutoShape, BasicSpline, BezierSpline, Circle, CubicBezier, Ellipse, EllipticalArc, GeometryComposition, GeometryRepeater, GeometryUnion, HorizontalLine, Line, Move, Path, Polygon, Polyline, QuadraticBezier, QuadraticSpline, RasterImage, RasterText, RasterTextPlus, RegularRectangle, RoundedRectangle, RoundedRectangleComplex, Stencil, SuperShape2D, VerticalLine |
Default MXML Propertygeometry
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
The alpha setting that applies to this object.
| Geometry | ||
| 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 | ||
| bottom : Number
When set, the bottom of the layout will be located
offset from the bottom of it's parent.
| Geometry | ||
| bounds : Rectangle [read-only]
The tight bounds of this element as represented by a Rectangle.
| Geometry | ||
| clippingRectangle : Rectangle
A clipping rectangle to use when rendering this geometry.
| Geometry | ||
| commandStack : CommandStack
Provides access to the command stack.
| Geometry | ||
| currentState : String
The current view state.
| Geometry | ||
| data : Object
Allows a short hand property setting that is
specific to and parsed by each geometry object.
| Geometry | ||
| decoratorCollection : DecoratorCollection
[read-only]
Access to the Decorator collection object for this Geometry object.
| Geometry | ||
| decorators : Array
A array of IDecorator objects to be applied on this Geometry.
| 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 | ||
| filters : Array
An array of BitmapFilter objects applied to this Geometry.
| Geometry | ||
| geometricLength : Number [read-only]
Returns geometric length of this 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 | ||
| hasDecorators : Boolean
Returns true if this Geometry has decorators.
| Geometry | ||
![]() | hasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
| DegrafaObject | |
| hasFilters : Boolean
Returns true if this Geometry has filters.
| Geometry | ||
| hasLayout : Boolean
Returns true if this Geometry has layout.
| Geometry | ||
| hasStates : Boolean
Returns true if this Geometry has states.
| Geometry | ||
| hasTriggers : Boolean
Returns true if this Geometry has triggers.
| Geometry | ||
| height : Number
Defines the height of the layout boundary.
| Geometry | ||
| horizontalCenter : Number
When set, if left or right is not set, the layout
will be centered horizontally offset by the numeric
value of this property.
| Geometry | ||
![]() | id : String
The identifier used by document to refer to this object.
| DegrafaObject | |
| IGraphicParent : IGraphic | Geometry | ||
| inheritFill : Boolean
If set to true and no fill is defined and there is a parent object
then this object will walk up through the parents to retrive a fill
object.
| Geometry | ||
| inheritStroke : Boolean
If set to true and no stroke is defined and there is a parent object
then this object will walk up through the parents to retrive a stroke
object.
| Geometry | ||
| invalidated : Boolean
Specifies whether this object is to be re calculated
on the next cycle.
| Geometry | ||
![]() | isInitialized : Boolean | DegrafaObject | |
| isInvalidated : Boolean [read-only]
Returns true if this Geometry object is invalidated
| Geometry | ||
| isRootGeometry : Boolean [read-only]
Returns true if this Geometry object is a root Geometry Object.
| Geometry | ||
| layoutConstraint : LayoutConstraint
The layout constraint that is used for positioning/sizing this geometry object.
| Geometry | ||
| _layoutMatrix : Matrix
Access to the layout matrix if this Geometry has layout.
| Geometry | ||
| layoutRectangle : Rectangle [read-only]
Returns the constraint based layout rectangle for this object
or bounds if no layout constraint is specified.
| Geometry | ||
| left : Number
When set, the left of the layout will be located
offset by the value of this property multiplied
by the containing width.
| Geometry | ||
| maintainAspectRatio : Boolean
When true, the size of the layout will always
maintain an aspect ratio relative to the ratio
of the current width and height properties, even
if those properties are not in control of the
height and width of the layout.
| Geometry | ||
| mask : IGeometryComposition
A separate geometry object to use as a mask when rendering this geometry.
| Geometry | ||
| maskMode : String
The mode used when this object is being masked by the geometry assigned to the mask property.
| Geometry | ||
| maskSpace : String
The coordinate space within which the referenced mask geometry is rendered before being applied as a mask (respecting maskMode)
to this object.
| Geometry | ||
| maxHeight : Number
The maximum height that can be applied
to the layout.
| Geometry | ||
| maxWidth : Number
The maximum width that can be applied
to the layout.
| Geometry | ||
| maxX : Number
The maximum x location that can be applied
to the layout.
| Geometry | ||
| maxY : Number
The maximum y location that can be applied
to the layout.
| Geometry | ||
| minHeight : Number
The minimum height that can be applied
to the layout.
| Geometry | ||
| minWidth : Number
The minimum width that can be applied
to the layout.
| Geometry | ||
| minX : Number
The minimum x location that can be applied
to the layout.
| Geometry | ||
| minY : Number
The minimum y location that can be applied
to the layout.
| Geometry | ||
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
![]() | objectBindings : Array | DegrafaObject | |
![]() | parent : IDegrafaObject
The current degrafa object parent.
| DegrafaObject | |
| percentHeight : Number
When set, the height of the layout will be
set as the value of this property multiplied
by the containing height.
| Geometry | ||
| percentWidth : Number
When set, the width of the layout will be
set as the value of this property multiplied
by the containing width.
| Geometry | ||
| right : Number
When set, the right of the layout will be located
offset by the value of this property multiplied
by the containing width.
| Geometry | ||
| scaleOnLayout : Boolean
When using layout this flag will determine if you want
Scale to be applied to fit layout rules
| Geometry | ||
| state : String
The state at which to draw this object.
| Geometry | ||
| stateEvent : String
The state event at which to draw this object.
| Geometry | ||
| states : Array
An array of states defined for this Geometry.
| Geometry | ||
| stroke : IGraphicsStroke
Defines the stroke object that will be used for
rendering this geometry object.
| Geometry | ||
| styleName : Object
The css style name associated with this Geometry.
| Geometry | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| targetCoordinateSpace : DisplayObject
The display object that defines the coordinate system to use.
| Geometry | ||
| top : Number
When set, the top of the layout will be located
offset from the top of it's parent.
| Geometry | ||
| transform : ITransform
Defines the transform object that will be used for
rendering this geometry object.
| Geometry | ||
| transformBounds : Rectangle [read-only]
Returns a transformed version of this objects bounds as
represented by a Rectangle.
| Geometry | ||
| transformContext : Matrix
A reference to the transformation matrix context within which local transforms will be applied.
| Geometry | ||
| triggers : Array
An array of ITrigger objects that this Geometry object will use.
| Geometry | ||
| verticalCenter : Number
When set, if top or bottom is not set, the layout
will be centered vertically offset by the numeric
value of this property.
| Geometry | ||
| visible : Boolean
Controls the visibility of this geometry object.
| Geometry | ||
| width : Number
Defines the width of the layout.
| Geometry | ||
| x : Number
Defines the x location (top left) of the layout.
| Geometry | ||
| y : Number
Defines the y location (top left) of the layout.
| Geometry | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
| DegrafaObject | |
| _fill : IGraphicsFill | Geometry | ||
| _stroke : IGraphicsStroke | Geometry | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
| DegrafaObject | |
|
angleAt(t:Number):Number
Returns the angle of a point t(0-1) on the path.
| Geometry | ||
|
calculateLayout(childBounds:Rectangle = null):void
Performs the layout calculations if required.
| Geometry | ||
|
clearGraphicsTargets():void
Clears all graphics targets specified in the graphicsTarget array.
| Geometry | ||
![]() |
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 | ||
|
drawToTargets():void
Requests a draw for each graphics target specified in the graphicsTarget array.
| 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 | |
|
initFill(graphics:Graphics, rc:Rectangle):void
Initialise the fill for this geometry object.
| Geometry | ||
![]() |
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 | |
|
initStroke(graphics:Graphics, rc:Rectangle):void
Initialise the stroke for this geometry object.
| Geometry | ||
|
pointAt(t:Number):Point
Returns the point at t(0-1) on this object.
| Geometry | ||
|
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 | |
|
styleChanged(styleProp:String):void
Called when the value of a style property is changed.
| Geometry | ||
![]() |
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 | |
| Method | Defined by | ||
|---|---|---|---|
|
propertyChangeHandler(event:PropertyChangeEvent):void
Principle event handler for any property changes to a
geometry object or it's child objects.
| Geometry | ||
| alpha | property |
alpha:Number [read-write]The alpha setting that applies to this object. Actual alpha used when rendering reflects this objects parent chain alpha settings. If this object descends from other geometries with alpha settings less than, the combined effect of the parent alphas is used in conjunction with the setting on this object.
This property can be used as the source for data binding.
Implementation public function get alpha():Number
public function set alpha(value:Number):void
| 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
| bottom | property |
bottom:Number [read-write]When set, the bottom of the layout will be located offset from the bottom of it's parent.
This property can be used as the source for data binding.
Implementation public function get bottom():Number
public function set bottom(value:Number):void
| bounds | property |
bounds:Rectangle [read-only]The tight bounds of this element as represented by a Rectangle. The value does not include children.
This property can be used as the source for data binding.
Implementation public function get bounds():Rectangle
| clippingRectangle | property |
clippingRectangle:Rectangle [read-write]A clipping rectangle to use when rendering this geometry.
This property can be used as the source for data binding.
Implementation public function get clippingRectangle():Rectangle
public function set clippingRectangle(value:Rectangle):void
| commandStack | property |
commandStack:CommandStack [read-write]Provides access to the command stack.
This property can be used as the source for data binding.
Implementation public function get commandStack():CommandStack
public function set commandStack(value:CommandStack):void
| currentState | property |
currentState:String [read-write]The current view state.
This property can be used as the source for data binding.
Implementation public function get currentState():String
public function set currentState(value:String):void
| data | property |
data:Object [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():Object
public function set data(value:Object):void
| decoratorCollection | property |
decoratorCollection:DecoratorCollection [read-only]Access to the Decorator collection object for this Geometry object.
This property can be used as the source for data binding.
Implementation public function get decoratorCollection():DecoratorCollection
| decorators | property |
decorators:Array [read-write]A array of IDecorator objects to be applied on this Geometry.
This property can be used as the source for data binding.
Implementation public function get decorators():Array
public function set decorators(value:Array):void
| _fill | property |
protected var _fill:IGraphicsFill
| 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
| filters | property |
filters:Array [read-write]An array of BitmapFilter objects applied to this Geometry.
This property can be used as the source for data binding.
Implementation public function get filters():Array
public function set filters(value:Array):void
| geometricLength | property |
geometricLength:Number [read-only]Returns geometric length of this object. The value does not include children.
This property can be used as the source for data binding.
Implementation public function get geometricLength():Number
| 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
| hasDecorators | property |
public var hasDecorators:BooleanReturns true if this Geometry has decorators.
| hasFilters | property |
public var hasFilters:BooleanReturns true if this Geometry has filters.
| hasLayout | property |
public var hasLayout:BooleanReturns true if this Geometry has layout.
| hasStates | property |
public var hasStates:BooleanReturns true if this Geometry has states.
| hasTriggers | property |
public var hasTriggers:BooleanReturns true if this Geometry has triggers.
| height | property |
height:Number [read-write]Defines the height of the layout boundary. Once top (or percentTop) or bottom (or percentBottom) is set, the width value no longer applies. If percentWidth exists when width is set, percentWidth will be overridden and be given a value of NaN. This property also accepts a percent value for example 75%.
This property can be used as the source for data binding.
Implementation public function get height():Number
public function set height(value:Number):void
| horizontalCenter | property |
horizontalCenter:Number [read-write]When set, if left or right is not set, the layout will be centered horizontally offset by the numeric value of this property.
This property can be used as the source for data binding.
Implementation public function get horizontalCenter():Number
public function set horizontalCenter(value:Number):void
| IGraphicParent | property |
IGraphicParent:IGraphic [read-write]This property can be used as the source for data binding.
Implementation public function get IGraphicParent():IGraphic
public function set IGraphicParent(value:IGraphic):void
| inheritFill | property |
inheritFill:Boolean [read-write]If set to true and no fill is defined and there is a parent object then this object will walk up through the parents to retrive a fill object.
This property can be used as the source for data binding.
Implementation public function get inheritFill():Boolean
public function set inheritFill(value:Boolean):void
| inheritStroke | property |
inheritStroke:Boolean [read-write]If set to true and no stroke is defined and there is a parent object then this object will walk up through the parents to retrive a stroke object.
This property can be used as the source for data binding.
Implementation public function get inheritStroke():Boolean
public function set inheritStroke(value:Boolean):void
| invalidated | property |
invalidated:Boolean [read-write]Specifies whether this object is to be re calculated on the next cycle. Only property updates which affect the computation of this object set this property
This property can be used as the source for data binding.
Implementation public function get invalidated():Boolean
public function set invalidated(value:Boolean):void
| isInvalidated | property |
isInvalidated:Boolean [read-only]Returns true if this Geometry object is invalidated
This property can be used as the source for data binding.
Implementation public function get isInvalidated():Boolean
| isRootGeometry | property |
isRootGeometry:Boolean [read-only]Returns true if this Geometry object is a root Geometry Object.
This property can be used as the source for data binding.
Implementation public function get isRootGeometry():Boolean
| layoutConstraint | property |
layoutConstraint:LayoutConstraint [read-write]The layout constraint that is used for positioning/sizing this geometry object.
This property can be used as the source for data binding.
Implementation public function get layoutConstraint():LayoutConstraint
public function set layoutConstraint(value:LayoutConstraint):void
| _layoutMatrix | property |
public var _layoutMatrix:MatrixAccess to the layout matrix if this Geometry has layout.
| layoutRectangle | property |
layoutRectangle:Rectangle [read-only]Returns the constraint based layout rectangle for this object or bounds if no layout constraint is specified.
This property can be used as the source for data binding.
Implementation public function get layoutRectangle():Rectangle
| left | property |
left:Number [read-write]When set, the left of the layout will be located offset by the value of this property multiplied by the containing width.
This property can be used as the source for data binding.
Implementation public function get left():Number
public function set left(value:Number):void
| maintainAspectRatio | property |
maintainAspectRatio:Boolean [read-write]When true, the size of the layout will always maintain an aspect ratio relative to the ratio of the current width and height properties, even if those properties are not in control of the height and width of the layout.
This property can be used as the source for data binding.
Implementation public function get maintainAspectRatio():Boolean
public function set maintainAspectRatio(value:Boolean):void
| mask | property |
mask:IGeometryComposition [read-write]A separate geometry object to use as a mask when rendering this geometry.
This property can be used as the source for data binding.
Implementation public function get mask():IGeometryComposition
public function set mask(value:IGeometryComposition):void
| maskMode | property |
maskMode:String [read-write]The mode used when this object is being masked by the geometry assigned to the mask property. The values can either be "clip" or "alpha" to represent regular flash player mask modes. clip mode is shape based clipping, alpha mode is alpha based masking. "svgClip" is a mode that mimics svg's clip-path setting with an even-odd clip-rule and userSpaceOnUse clipping units svg clipping differs from regular flash clipping in that the perimeter of the mask geometry is used for clipping, not simply the filled areas. "svgMask" is a mode that mimics svgs mask, with combined luminance and alpha values contributing to masking rather than simply alpha as is the case for flash player. Masking operations in Degrafa use BitmapData internally, so require that the mask and maskee are less than the bitmapData size limits of the player version.
This property can be used as the source for data binding.
Implementation public function get maskMode():String
public function set maskMode(value:String):void
| maskSpace | property |
maskSpace:String [read-write]The coordinate space within which the referenced mask geometry is rendered before being applied as a mask (respecting maskMode) to this object.
This property can be used as the source for data binding.
Implementation public function get maskSpace():String
public function set maskSpace(value:String):void
| maxHeight | property |
maxHeight:Number [read-write]The maximum height that can be applied to the layout.
This property can be used as the source for data binding.
Implementation public function get maxHeight():Number
public function set maxHeight(value:Number):void
| maxWidth | property |
maxWidth:Number [read-write]The maximum width that can be applied to the layout.
This property can be used as the source for data binding.
Implementation public function get maxWidth():Number
public function set maxWidth(value:Number):void
| maxX | property |
maxX:Number [read-write]The maximum x location that can be applied to the layout.
This property can be used as the source for data binding.
Implementation public function get maxX():Number
public function set maxX(value:Number):void
| maxY | property |
maxY:Number [read-write]The maximum y location that can be applied to the layout.
This property can be used as the source for data binding.
Implementation public function get maxY():Number
public function set maxY(value:Number):void
| minHeight | property |
minHeight:Number [read-write]The minimum height that can be applied to the layout.
This property can be used as the source for data binding.
Implementation public function get minHeight():Number
public function set minHeight(value:Number):void
| minWidth | property |
minWidth:Number [read-write]The minimum width that can be applied to the layout.
This property can be used as the source for data binding.
Implementation public function get minWidth():Number
public function set minWidth(value:Number):void
| minX | property |
minX:Number [read-write]The minimum x location that can be applied to the layout.
This property can be used as the source for data binding.
Implementation public function get minX():Number
public function set minX(value:Number):void
| minY | property |
minY:Number [read-write]The minimum y location that can be applied to the layout.
This property can be used as the source for data binding.
Implementation public function get minY():Number
public function set minY(value:Number):void
| percentHeight | property |
percentHeight:Number [read-write]When set, the height of the layout will be set as the value of this property multiplied by the containing height. A value of 0 represents 0% and 1 represents 100% a value of 75 represents 75%.
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]When set, the width of the layout will be set as the value of this property multiplied by the containing width. A value of 0 represents 0% and 1 represents 100% a value of 75 represents 75%.
This property can be used as the source for data binding.
Implementation public function get percentWidth():Number
public function set percentWidth(value:Number):void
| right | property |
right:Number [read-write]When set, the right of the layout will be located offset by the value of this property multiplied by the containing width.
This property can be used as the source for data binding.
Implementation public function get right():Number
public function set right(value:Number):void
| scaleOnLayout | property |
scaleOnLayout:Boolean [read-write]When using layout this flag will determine if you want Scale to be applied to fit layout rules
This property can be used as the source for data binding.
Implementation public function get scaleOnLayout():Boolean
public function set scaleOnLayout(value:Boolean):void
| state | property |
state:String [read-write]The state at which to draw this object. This property is specific to Skinning.
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 is specific to Skinning.
This property can be used as the source for data binding.
Implementation public function get stateEvent():String
public function set stateEvent(value:String):void
| states | property |
states:Array [read-write]An array of states defined for this Geometry.
This property can be used as the source for data binding.
Implementation public function get states():Array
public function set states(value:Array):void
| _stroke | property |
protected var _stroke:IGraphicsStroke
| 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
| styleName | property |
styleName:Object [read-write]The css style name associated with this Geometry. Not yet fully implemented as of Beta 3.
This property can be used as the source for data binding.
Implementation public function get styleName():Object
public function set styleName(value:Object):void
| targetCoordinateSpace | property |
targetCoordinateSpace:DisplayObject [read-write]The display object that defines the coordinate system to use. Dev Note:: Not yet implemented as of Beta 3.
This property can be used as the source for data binding.
Implementation public function get targetCoordinateSpace():DisplayObject
public function set targetCoordinateSpace(value:DisplayObject):void
| top | property |
top:Number [read-write]When set, the top of the layout will be located offset from the top of it's parent.
This property can be used as the source for data binding.
Implementation public function get top():Number
public function set top(value:Number):void
| transform | property |
transform:ITransform [read-write]Defines the transform 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 transform():ITransform
public function set transform(value:ITransform):void
| transformBounds | property |
transformBounds:Rectangle [read-only]Returns a transformed version of this objects bounds as represented by a Rectangle. If no transform is specified bounds is returned. The value does not include children.
This property can be used as the source for data binding.
Implementation public function get transformBounds():Rectangle
| transformContext | property |
transformContext:Matrix [read-write]A reference to the transformation matrix context within which local transforms will be applied. Similar in concept to the concatenatedMatrix on a flash DisplayObjects transform property.
This property can be used as the source for data binding.
Implementation public function get transformContext():Matrix
public function set transformContext(value:Matrix):void
| triggers | property |
triggers:Array [read-write]An array of ITrigger objects that this Geometry object will use.
This property can be used as the source for data binding.
Implementation public function get triggers():Array
public function set triggers(value:Array):void
| verticalCenter | property |
verticalCenter:Number [read-write]When set, if top or bottom is not set, the layout will be centered vertically offset by the numeric value of this property.
This property can be used as the source for data binding.
Implementation public function get verticalCenter():Number
public function set verticalCenter(value:Number):void
| visible | property |
visible:Boolean [read-write]Controls the visibility of this geometry object. If true, the geometry is visible. When set to false this geometry object will be pre computed nor drawn.
This property can be used as the source for data binding.
Implementation public function get visible():Boolean
public function set visible(value:Boolean):void
| width | property |
width:Number [read-write]Defines the width of the layout. Once left (or percentLeft) or right (or percentRight) is set, the width value no longer applies. If percentWidth exists when width is set, percentWidth will be overridden and be given a value of NaN. This property also accepts a percent value for example 75%.
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]Defines the x location (top left) of the layout.
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]Defines the y location (top left) of the layout.
This property can be used as the source for data binding.
Implementation public function get y():Number
public function set y(value:Number):void
| angleAt | () | method |
public function angleAt(t:Number):NumberReturns the angle of a point t(0-1) on the path.
Parameterst:Number |
Number |
| calculateLayout | () | method |
public function calculateLayout(childBounds:Rectangle = null):voidPerforms the layout calculations if required. All geometry override this for specifics.
ParameterschildBounds:Rectangle (default = null) — the bounds to be layed out. If not specified a rectangle
of (0,0,1,1) is used.
|
| clearGraphicsTargets | () | method |
public function clearGraphicsTargets():voidClears all graphics targets specified in the graphicsTarget array.
| 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.
|
| drawToTargets | () | method |
public function drawToTargets():voidRequests a draw for each graphics target specified in the graphicsTarget array.
| endDraw | () | method |
public function endDraw(graphics:Graphics):voidEnds the draw phase for geometry objects.
Parametersgraphics:Graphics — The current Graphics context being drawn to.
|
| initFill | () | method |
public function initFill(graphics:Graphics, rc:Rectangle):voidInitialise the fill for this geometry object. Typically only called by draw
Parametersgraphics:Graphics — The current context to draw to.
|
|
rc:Rectangle — A Rectangle object used for fill bounds.
|
| initStroke | () | method |
public function initStroke(graphics:Graphics, rc:Rectangle):voidInitialise the stroke for this geometry object. Typically only called by draw
Parametersgraphics:Graphics — The current context to draw to.
|
|
rc:Rectangle — A Rectangle object used for fill bounds.
|
| pointAt | () | method |
public function pointAt(t:Number):PointReturns the point at t(0-1) on this object.
Parameterst:Number |
Point |
| 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.
| propertyChangeHandler | () | method |
protected function propertyChangeHandler(event:PropertyChangeEvent):voidPrinciple event handler for any property changes to a geometry object or it's child objects.
Parametersevent:PropertyChangeEvent |
| styleChanged | () | method |
public function styleChanged(styleProp:String):voidCalled when the value of a style property is changed.
ParametersstyleProp:String |