Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.geom 
RoundedRectangle 
Packagemx.geom
Classpublic class RoundedRectangle
InheritanceRoundedRectangle Inheritance Rectangle Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

RoundedRectangle represents a Rectangle with curved corners



Public Properties
 PropertyDefined By
 Inheritedbottom : Number
The sum of the y and height properties.
Rectangle
 InheritedbottomRight : Point
The location of the Rectangle object's bottom-right corner, determined by the values of the right and bottom properties.
Rectangle
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  cornerRadius : Number = 0
The radius of each corner (in pixels).
RoundedRectangle
 Inheritedheight : Number
The height of the rectangle, in pixels.
Rectangle
 Inheritedleft : Number
The x coordinate of the top-left corner of the rectangle.
Rectangle
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 Inheritedright : Number
The sum of the x and width properties.
Rectangle
 Inheritedsize : Point
The size of the Rectangle object, expressed as a Point object with the values of the width and height properties.
Rectangle
 Inheritedtop : Number
The y coordinate of the top-left corner of the rectangle.
Rectangle
 InheritedtopLeft : Point
The location of the Rectangle object's top-left corner, determined by the x and y coordinates of the point.
Rectangle
 Inheritedwidth : Number
The width of the rectangle, in pixels.
Rectangle
 Inheritedx : Number
The x coordinate of the top-left corner of the rectangle.
Rectangle
 Inheritedy : Number
The y coordinate of the top-left corner of the rectangle.
Rectangle
Public Methods
 MethodDefined By
  
RoundedRectangle(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, cornerRadius:Number = 0)
Constructor.
RoundedRectangle
 Inherited
Returns a new Rectangle object with the same values for the x, y, width, and height properties as the original Rectangle object.
Rectangle
 Inherited
Determines whether the specified point is contained within the rectangular region defined by this Rectangle object.
Rectangle
 Inherited
Determines whether the specified point is contained within the rectangular region defined by this Rectangle object.
Rectangle
 Inherited
Determines whether the Rectangle object specified by the rect parameter is contained within this Rectangle object.
Rectangle
 Inherited
Determines whether the object specified in the toCompare parameter is equal to this Rectangle object.
Rectangle
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Increases the size of the Rectangle object by the specified amounts, in pixels.
Rectangle
 Inherited
Increases the size of the Rectangle object.
Rectangle
 Inherited
If the Rectangle object specified in the toIntersect parameter intersects with this Rectangle object, returns the area of intersection as a Rectangle object.
Rectangle
 Inherited
Determines whether the object specified in the toIntersect parameter intersects with this Rectangle object.
Rectangle
 Inherited
Determines whether or not this Rectangle object is empty.
Rectangle
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Adjusts the location of the Rectangle object, as determined by its top-left corner, by the specified amounts.
Rectangle
 Inherited
Adjusts the location of the Rectangle object using a Point object as a parameter.
Rectangle
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets all of the Rectangle object's properties to 0.
Rectangle
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Builds and returns a string that lists the horizontal and vertical positions and the width and height of the Rectangle object.
Rectangle
 Inherited
Adds two rectangles together to create a new Rectangle object, by filling in the horizontal and vertical space between the two rectangles.
Rectangle
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

cornerRadius

property
public var cornerRadius:Number = 0

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The radius of each corner (in pixels).

The default value is 0.

Constructor Detail

RoundedRectangle

()Constructor
public function RoundedRectangle(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, cornerRadius:Number = 0)

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Constructor.

Parameters
x:Number (default = 0) — The x coordinate of the top-left corner of the rectangle.
 
y:Number (default = 0) — The y coordinate of the top-left corner of the rectangle.
 
width:Number (default = 0) — The width of the rectangle, in pixels.
 
height:Number (default = 0) — The height of the rectangle, in pixels.
 
cornerRadius:Number (default = 0) — The radius of each corner, in pixels.