Packagecom.degrafa.geometry.repeaters
Classpublic class RoundedRectangleComplexRepeater
InheritanceRoundedRectangleComplexRepeater Inheritance Repeater Inheritance Geometry Inheritance DegrafaObject

The RoundedRectangleComplex element draws a complex rounded rectangle using the specified x,y, width, height and top left radius, top right radius, bottom left radius and bottom right radius. Then progressively repeats the rectangle using count and offsets.

See also

http://samples.degrafa.com/RoundedRectangleComplexRepeater/RoundedRectangleComplexRepeater.html


Public Properties
 PropertyDefined by
 InheritedautoClearGraphicsTarget : 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 first complex rounded rectangle.
RoundedRectangleComplexRepeater
  bottomRightRadius : Number
The radius for the bottom right corner of the first complex rounded rectangle.
RoundedRectangleComplexRepeater
  bounds : Rectangle
[read-only] The tight bounds of this element as represented by a Rectangle object.
RoundedRectangleComplexRepeater
 Inheritedcount : Number
The number of times to repeat the geometry.
Repeater
  data : String
[write-only] RoundedRectangleComplex short hand data value.
RoundedRectangleComplexRepeater
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 Inheritedfill : IGraphicsFill
Defines the fill object that will be used for rendering this geometry object.
Geometry
 Inheritedgeometry : Array
A array of IGeometryComposition objects.
Geometry
 InheritedgeometryCollection : GeometryCollection
Access to the Degrafa geometry collection object for this geometry object.
Geometry
 InheritedgraphicsTarget : Array
One or more display object's that this Geometry is to be drawn to.
Geometry
 InheritedgraphicsTargetCollection : DisplayObjectCollection
Access to the Degrafa target collection object for this geometry object.
Geometry
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
  height : Number
The height of the first complex rounded rectangle.
RoundedRectangleComplexRepeater
 Inheritedid : String
The identifier used by document to refer to this object.
DegrafaObject
 Inheritedinvalidated : Boolean
Specifies whether this object is to be re calculated on the next cycle.
Geometry
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  offsetBottomLeftRadius : Number
The offset of the lower left radius of the complex rounded rectangle.
RoundedRectangleComplexRepeater
  offsetBottomRightRadius : Number
The offset of the lower right radius of the complex rounded rectangle.
RoundedRectangleComplexRepeater
  offsetHeight : Number
The offsetHeight value sets the width of the offset of the repeated rectangles.
RoundedRectangleComplexRepeater
  offsetTopLeftRadius : Number
The offset of the upper left radius of the complex rounded rectangle.
RoundedRectangleComplexRepeater
  offsetTopRightRadius : Number
The offset of the upper right radius of the complex rounded rectangle.
RoundedRectangleComplexRepeater
  offsetWidth : Number
The offsetWidth value sets the width of the offset of the repeated rectangles.
RoundedRectangleComplexRepeater
 InheritedoffsetX : Number
The offset of the x-axis of each geometry object.
Repeater
 InheritedoffsetY : Number
The offset of the y-axis of each geometry object.
Repeater
 Inheritedstate : String
The state at which to draw this object
Geometry
 InheritedstateEvent : String
The state event at which to draw this object
Geometry
 Inheritedstroke : IGraphicsStroke
Defines the stroke object that will be used for rendering this geometry object.
Geometry
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  topLeftRadius : Number
The radius for the top left corner of the first complex rounded rectangle.
RoundedRectangleComplexRepeater
  topRightRadius : Number
The radius for the top right corner of the first complex rounded rectangle.
RoundedRectangleComplexRepeater
  width : Number
The width of the first complex rounded rectangle.
RoundedRectangleComplexRepeater
  x : Number
The x-axis coordinate of the upper left point of the first complex rounded rectangle.
RoundedRectangleComplexRepeater
  y : Number
The y-axis coordinate of the upper left point of the first complex rounded rectangle.
RoundedRectangleComplexRepeater
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
  objectStack : Array
An Array of geometry objects that make up this repeater.
RoundedRectangleComplexRepeater
Public Methods
 MethodDefined by
  
RoundedRectangleComplexRepeater(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, topLeftRadius:Number = 0, topRightRadius:Number = 0, bottomLeftRadius:Number = 0, bottomRightRadius:Number = 0, count:Number = 0, offsetX:Number = 0, offsetY:Number = 0, offsetTopLeftRadius:Number = 0, offsetTopRightRadius:Number = 0, offsetBottomLeftRadius:Number = 0, offsetBottomRightRadius:Number = 0, offsetWidth:Number = 0, offsetHeight:Number = 0)
Constructor.
RoundedRectangleComplexRepeater
 Inherited
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
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
 Inherited
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.
RoundedRectangleComplexRepeater
 Inherited
endDraw(graphics:Graphics):void
Ends the draw phase for geometry objects.
Geometry
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
 Inherited
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.
RoundedRectangleComplexRepeater
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
 Inherited
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
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
bottomLeftRadiusproperty
bottomLeftRadius:Number  [read-write]

The radius for the bottom left corner of the first 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
bottomRightRadiusproperty 
bottomRightRadius:Number  [read-write]

The radius for the bottom right corner of the first 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
boundsproperty 
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
dataproperty 
data:String  [write-only]

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 set data(value:String):void

See also

Geometry.data
heightproperty 
height:Number  [read-write]

The height of the first 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
objectStackproperty 
protected var objectStack:Array

An Array of geometry objects that make up this repeater.

offsetBottomLeftRadiusproperty 
offsetBottomLeftRadius:Number  [read-write]

The offset of the lower left radius 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 offsetBottomLeftRadius():Number
    public function set offsetBottomLeftRadius(value:Number):void
offsetBottomRightRadiusproperty 
offsetBottomRightRadius:Number  [read-write]

The offset of the lower right radius 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 offsetBottomRightRadius():Number
    public function set offsetBottomRightRadius(value:Number):void
offsetHeightproperty 
offsetHeight:Number  [read-write]

The offsetHeight value sets the width of the offset of the repeated rectangles. 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 offsetHeight():Number
    public function set offsetHeight(value:Number):void
offsetTopLeftRadiusproperty 
offsetTopLeftRadius:Number  [read-write]

The offset of the upper left radius 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 offsetTopLeftRadius():Number
    public function set offsetTopLeftRadius(value:Number):void
offsetTopRightRadiusproperty 
offsetTopRightRadius:Number  [read-write]

The offset of the upper right radius 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 offsetTopRightRadius():Number
    public function set offsetTopRightRadius(value:Number):void
offsetWidthproperty 
offsetWidth:Number  [read-write]

The offsetWidth value sets the width of the offset of the repeated rectangles. 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 offsetWidth():Number
    public function set offsetWidth(value:Number):void
topLeftRadiusproperty 
topLeftRadius:Number  [read-write]

The radius for the top left corner of the first 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
topRightRadiusproperty 
topRightRadius:Number  [read-write]

The radius for the top right corner of the first 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
widthproperty 
width:Number  [read-write]

The width of the first 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
xproperty 
x:Number  [read-write]

The x-axis coordinate of the upper left point of the first 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
yproperty 
y:Number  [read-write]

The y-axis coordinate of the upper left point of the first 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
Constructor detail
RoundedRectangleComplexRepeater()constructor
public function RoundedRectangleComplexRepeater(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, topLeftRadius:Number = 0, topRightRadius:Number = 0, bottomLeftRadius:Number = 0, bottomRightRadius:Number = 0, count:Number = 0, offsetX:Number = 0, offsetY:Number = 0, offsetTopLeftRadius:Number = 0, offsetTopRightRadius:Number = 0, offsetBottomLeftRadius:Number = 0, offsetBottomRightRadius:Number = 0, offsetWidth:Number = 0, offsetHeight:Number = 0)

Constructor.

The complex rounded rectangle repeater 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; as well as 9 arguments for count and offsets.

Parameters
x:Number (default = 0) — A number indicating the upper left x-axis coordinate.
 
y:Number (default = 0) — A number indicating the upper left y-axis coordinate.
 
width:Number (default = 0) — A number indicating the width.
 
height:Number (default = 0) — A number indicating the height.
 
topLeftRadius:Number (default = 0) — A number indicating the top left corner radius.
 
topRightRadius:Number (default = 0) — A number indicating the top right corner radius.
 
bottomLeftRadius:Number (default = 0) — A number indicating the bottom left corner radius.
 
bottomRightRadius:Number (default = 0) — A number indicating the bottom right corner radius.
 
count:Number (default = 0) — A number indicating the left corner radius offset of each complex rounded rectangle repeated.
 
offsetX:Number (default = 0) — A number indicating the top right corner radius offset of each complex rounded rectangle repeated.
 
offsetY:Number (default = 0) — A number indicating the bottom left corner radius offset of each complex rounded rectangle repeated.
 
offsetTopLeftRadius:Number (default = 0) — A number indicating the bottom right corner radius offset of each complex rounded rectangle repeated.
 
offsetTopRightRadius:Number (default = 0) — A number indicating the repeat count of complex rounded rectangles.
 
offsetBottomLeftRadius:Number (default = 0) — A number indicating the x-axis offset of each complex rounded rectangle repeated.
 
offsetBottomRightRadius:Number (default = 0) — A number indicating the y-axis offset of each complex rounded rectangle repeated.
 
offsetWidth:Number (default = 0) — A number indicating the width offset of each complex rounded rectangle repeated.
 
offsetHeight:Number (default = 0) — A number indicating the height offset of each complex rounded rectangle repeated.
Method detail
draw()method
public override 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 
public override 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.