| Package | com.degrafa.geometry |
| Class | public class RoundedRectangleComplex |
| Inheritance | RoundedRectangleComplex Geometry DegrafaObject |
| Implements | IGeometry |
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 | |
| bottomLeftRadius : Number
The radius for the bottom left corner of the complex rounded rectangle.
| RoundedRectangleComplex | ||
| bottomRightRadius : Number
The radius for the bottom right corner of the complex rounded rectangle.
| RoundedRectangleComplex | ||
| bounds : Rectangle [read-only]
The tight bounds of this element as represented by a Rectangle object.
| RoundedRectangleComplex | ||
| data : String
RoundedRectangleComplex short hand data value.
| RoundedRectangleComplex | ||
| derive : RoundedRectangleComplex
[write-only]
An object to derive this objects properties from.
| RoundedRectangleComplex | ||
![]() | 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 | |
| height : Number
The height of the complex rounded rectangle.
| RoundedRectangleComplex | ||
![]() | 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 | |
| topLeftRadius : Number
The radius for the top left corner of the complex rounded rectangle.
| RoundedRectangleComplex | ||
| topRightRadius : Number
The radius for the top right corner of the complex rounded rectangle.
| RoundedRectangleComplex | ||
| width : Number
The width of the complex rounded rectangle.
| RoundedRectangleComplex | ||
| x : Number
The x-axis coordinate of the upper left point of the complex rounded rectangle.
| RoundedRectangleComplex | ||
| y : Number
The y-axis coordinate of the upper left point of the complex rounded rectangle.
| RoundedRectangleComplex | ||
| Property | Defined by | ||
|---|---|---|---|
| commandStack : Array
An Array of flash rendering commands that make up this element.
| RoundedRectangleComplex | ||
![]() | eventDispatcher : EventDispatcher
EventDispatcher instance for this object.
| DegrafaObject | |
| Method | Defined by | ||
|---|---|---|---|
|
RoundedRectangleComplex(x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number)
Constructor.
| RoundedRectangleComplex | ||
![]() |
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.
| RoundedRectangleComplex | ||
![]() |
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.
| RoundedRectangleComplex | ||
![]() |
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 | |
| bottomLeftRadius | property |
bottomLeftRadius:Number [read-write]The radius for the bottom left corner of the complex rounded rectangle.
This property can be used as the source for data binding.
Implementation public function get bottomLeftRadius():Number
public function set bottomLeftRadius(value:Number):void
| bottomRightRadius | property |
bottomRightRadius:Number [read-write]The radius for the bottom right corner of the complex rounded rectangle.
This property can be used as the source for data binding.
Implementation public function get bottomRightRadius():Number
public function set bottomRightRadius(value:Number):void
| 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
| commandStack | property |
protected var commandStack:ArrayAn Array of flash rendering commands that make up this element.
| data | property |
data:String [read-write]RoundedRectangleComplex short hand data value.
The complex rounded rectangle data property expects exactly 8 values x, y, width, height, top left radius, top right radius, bottom left radius and bottom right radius separated by spaces.
This property can be used as the source for data binding.
Implementation public function get data():String
public function set data(value:String):void
See also
| derive | property |
derive:RoundedRectangleComplex [write-only]An object to derive this objects properties from. When specified this object will derive it's unspecified properties from the passed object.
This property can be used as the source for data binding.
Implementation public function set derive(value:RoundedRectangleComplex):void
| height | property |
height:Number [read-write]The height of the complex rounded rectangle.
This property can be used as the source for data binding.
Implementation public function get height():Number
public function set height(value:Number):void
| topLeftRadius | property |
topLeftRadius:Number [read-write]The radius for the top left corner of the complex rounded rectangle.
This property can be used as the source for data binding.
Implementation public function get topLeftRadius():Number
public function set topLeftRadius(value:Number):void
| topRightRadius | property |
topRightRadius:Number [read-write]The radius for the top right corner of the complex rounded rectangle.
This property can be used as the source for data binding.
Implementation public function get topRightRadius():Number
public function set topRightRadius(value:Number):void
| width | property |
width:Number [read-write]The width of the complex rounded rectangle.
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]The x-axis coordinate of the upper left point of the complex rounded rectangle. 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-axis coordinate of the upper left point of the complex rounded rectangle. 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
| RoundedRectangleComplex | () | constructor |
public function RoundedRectangleComplex(x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number)Constructor.
The complex rounded rectangle constructor accepts 8 optional arguments that define it's x, y, width, height, top left radius, top right radius, bottom left radius and bottom right radius.
Parametersx:Number — A number indicating the upper left x-axis coordinate.
|
|
y:Number — A number indicating the upper left y-axis coordinate.
|
|
width:Number — A number indicating the width.
|
|
height:Number — A number indicating the height.
|
|
topLeftRadius:Number — A number indicating the top left corner radius.
|
|
topRightRadius:Number — A number indicating the top right corner radius.
|
|
bottomLeftRadius:Number — A number indicating the bottom left corner radius.
|
|
bottomRightRadius:Number — A number indicating the bottom right corner radius.
|
| 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.