Package | mx.geom |
Class | public class RoundedRectangle |
Inheritance | RoundedRectangle Rectangle Object |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Public Properties
Property | Defined By | ||
---|---|---|---|
bottom : Number
The sum of the y and
height properties. | Rectangle | ||
bottomRight : Point
The location of the Rectangle object's bottom-right corner, determined by the values of the right and
bottom properties. | Rectangle | ||
constructor : 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 | ||
height : Number
The height of the rectangle, in pixels. | Rectangle | ||
left : Number
The x coordinate of the top-left corner of the rectangle. | Rectangle | ||
right : Number
The sum of the x and
width properties. | Rectangle | ||
size : Point
The size of the Rectangle object, expressed as a Point object with the values
of the width and height properties. | Rectangle | ||
top : Number
The y coordinate of the top-left corner of the rectangle. | Rectangle | ||
topLeft : Point
The location of the Rectangle object's top-left corner, determined by the x and
y coordinates of the point. | Rectangle | ||
width : Number
The width of the rectangle, in pixels. | Rectangle | ||
x : Number
The x coordinate of the top-left corner of the rectangle. | Rectangle | ||
y : Number
The y coordinate of the top-left corner of the rectangle. | Rectangle |
Public Methods
Method | Defined By | ||
---|---|---|---|
RoundedRectangle(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, cornerRadius:Number = 0)
Constructor. | RoundedRectangle | ||
Returns a new Rectangle object with the same values for the x, y,
width, and height properties as the original Rectangle object. | Rectangle | ||
Determines whether the specified point is contained within the rectangular region defined
by this Rectangle object. | Rectangle | ||
Determines whether the specified point is contained within the rectangular region defined
by this Rectangle object. | Rectangle | ||
Determines whether the Rectangle object specified by the rect parameter is contained
within this Rectangle object. | Rectangle | ||
Copies all of rectangle data from the source Rectangle object into the
calling Rectangle object. | Rectangle | ||
Determines whether the object specified in the toCompare parameter is
equal to this Rectangle object. | Rectangle | ||
Indicates whether an object has a specified property defined. | Object | ||
Increases the size of the Rectangle object by the specified amounts, in pixels. | Rectangle | ||
Increases the size of the Rectangle object. | Rectangle | ||
If the Rectangle object specified in the toIntersect parameter intersects with this Rectangle
object, returns the area of intersection as a Rectangle object. | Rectangle | ||
Determines whether the object specified in the toIntersect parameter intersects
with this Rectangle object. | Rectangle | ||
Determines whether or not this Rectangle object is empty. | Rectangle | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Adjusts the location of the Rectangle object, as determined by its top-left corner,
by the specified amounts. | Rectangle | ||
Adjusts the location of the Rectangle object using a Point object as a parameter. | Rectangle | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets all of the Rectangle object's properties to 0. | Rectangle | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Sets the members of Rectangle to the specified values
| Rectangle | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Builds and returns a string that lists the horizontal and vertical positions
and the width and height of the Rectangle object. | Rectangle | ||
Adds two rectangles together to create a new Rectangle object, by
filling in the horizontal and vertical space between the two rectangles. | Rectangle | ||
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.
Parametersx: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.
|
Thu Dec 6 2018, 01:12 PM -08:00