Package | com.degrafa.geometry |
Class | public class Wedge |
Inheritance | Wedge ![]() ![]() |
Implements | com.degrafa.IGeometry |
Default MXML Propertygeometry
See also
Property | Defined By | ||
---|---|---|---|
![]() | alpha : Number
The alpha setting that applies to this object. | Geometry | |
arc : Number
The angular extent of the arc. | Wedge | ||
![]() | 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 | |
centerX : Number
The centerX-acenterXis coordinate of the upper left point of the arcs enclosure. | Wedge | ||
centerY : Number
The centerY-axis coordinate of the upper left point of the arcs enclosure. | Wedge | ||
![]() | 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 [write-only]
EllipticalArc short hand data value. | Wedge | ||
![]() | 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 | |
derive : Wedge [write-only]
An object to derive this objects properties from. | Wedge | ||
![]() | 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 | |
![]() | 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
The height of the arc. | Wedge | ||
![]() | 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 | |
![]() | 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 | |
innerRadius : Number
The inner radius of the arc when used with a pie type closure. | Wedge | ||
![]() | invalidated : Boolean
Specifies whether this object is to be re calculated
on the next cycle. | Geometry | |
![]() | 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 | |
outerRadius : Number
The outer radius of the arc when used with a pie type closure. | Wedge | ||
![]() | 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 | |
startAngle : Number
The beginning angle of the arc. | Wedge | ||
![]() | 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 | |
![]() | 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
The width of the arc. | Wedge | ||
x : Number
The x-axis coordinate of the upper left point of the arcs enclosure. | Wedge | ||
y : Number
The y-axis coordinate of the upper left point of the arcs enclosure. | Wedge |
Method | Defined By | ||
---|---|---|---|
Wedge(x:Number, y:Number, centerX:Number, centerY:Number, width:Number, height:Number, startAngle:Number, arc:Number, closureType:String = null, innerRadius:Number, outerRadius:Number)
Constructor. | Wedge | ||
![]() | angleAt(t:Number):Number
Returns the angle of a point t(0-1) on the path. | Geometry | |
calculateLayout(childBounds:Rectangle = null):void
Performs the specific layout work required by this Geometry. | Wedge | ||
![]() | clearGraphicsTargets():void
Clears all graphics targets specified in the graphicsTarget array. | Geometry | |
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for geometry objects. | Wedge | ||
![]() | 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 | |
![]() | initFill(graphics:Graphics, rc:Rectangle):void
Initialise the fill for this geometry object. | Geometry | |
![]() | 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. | Wedge | ||
![]() | styleChanged(styleProp:String):void
Called when the value of a style property is changed. | Geometry |
arc | property |
arc:Number
[read-write] The angular extent of the arc. If not specified a default value of 0 is used.
public function get arc():Number
public function set arc(value:Number):void
centerX | property |
centerX:Number
[read-write] The centerX-acenterXis coordinate of the upper left point of the arcs enclosure. If not specified a default value of 0 is used.
public function get centerX():Number
public function set centerX(value:Number):void
centerY | property |
centerY:Number
[read-write] The centerY-axis coordinate of the upper left point of the arcs enclosure. If not specified a default value of 0 is used.
public function get centerY():Number
public function set centerY(value:Number):void
data | property |
data:Object
[write-only] EllipticalArc short hand data value.
The elliptical arc data property expects exactly 6 values x, y, width, height, startAngle and arc separated by spaces.
public function set data(value:Object):void
See also
derive | property |
derive:Wedge
[write-only] An object to derive this objects properties from. When specified this object will derive it's unspecified properties from the passed object.
public function set derive(value:Wedge):void
height | property |
height:Number
[read-write] The height of the arc.
public function get height():Number
public function set height(value:Number):void
innerRadius | property |
innerRadius:Number
[read-write] The inner radius of the arc when used with a pie type closure.
public function get innerRadius():Number
public function set innerRadius(value:Number):void
outerRadius | property |
outerRadius:Number
[read-write] The outer radius of the arc when used with a pie type closure.
public function get outerRadius():Number
public function set outerRadius(value:Number):void
startAngle | property |
startAngle:Number
[read-write] The beginning angle of the arc. If not specified a default value of 0 is used.
public function get startAngle():Number
public function set startAngle(value:Number):void
width | property |
width:Number
[read-write] The width of the arc.
public function get width():Number
public function set width(value:Number):void
x | property |
x:Number
[read-write] The x-axis coordinate of the upper left point of the arcs enclosure. If not specified a default value of 0 is used.
public function get x():Number
public function set x(value:Number):void
y | property |
y:Number
[read-write] The y-axis coordinate of the upper left point of the arcs enclosure. If not specified a default value of 0 is used.
public function get y():Number
public function set y(value:Number):void
Wedge | () | Constructor |
public function Wedge(x:Number, y:Number, centerX:Number, centerY:Number, width:Number, height:Number, startAngle:Number, arc:Number, closureType:String = null, innerRadius:Number, outerRadius:Number)
Constructor.
The elliptical arc constructor accepts 7 optional arguments that define it's x, y, width, height, start angle, arc and closure type.
Parametersx:Number (default = NaN ) — A number indicating the upper left x-axis coordinate.
| |
y:Number (default = NaN ) — A number indicating the upper left y-axis coordinate.
| |
centerX:Number (default = NaN ) — A number indicating the width.
| |
centerY:Number (default = NaN ) — A number indicating the height.
| |
width:Number (default = NaN ) — A number indicating the beginning angle of the arc.
| |
height:Number (default = NaN ) — A number indicating the the angular extent of the arc, relative to the start angle.
| |
startAngle:Number (default = NaN ) — A string indicating the method used to close the arc.
| |
arc:Number (default = NaN )
| |
closureType:String (default = null )
| |
innerRadius:Number (default = NaN )
| |
outerRadius:Number (default = NaN )
|
calculateLayout | () | method |
override public function calculateLayout(childBounds:Rectangle = null):void
Performs the specific layout work required by this Geometry.
Parameters
childBounds:Rectangle (default = null ) — the bounds to be layed out. If not specified a rectangle
of (0,0,1,1) is used.
|
draw | () | method |
override public function draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for geometry objects. All geometry objects override this to do their specific rendering.
Parameters
graphics:Graphics — The current context to draw to.
| |
rc:Rectangle — A Rectangle object used for fill bounds.
|
preDraw | () | method |
override public function preDraw():void
Performs 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.