Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
RoundedRectangle

Package | mx.geom
Class | public class RoundedRectangle
Inheritance | RoundedRectangle flash.geom.Rectangle

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

| Property | Defined By
--- | --- | ---
|  | cornerRadius : Number = 0 The radius of each corner (in pixels). | RoundedRectangle

Public Methods

| Method | Defined By
--- | --- | ---
|  | RoundedRectangle(x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, cornerRadius:Number = 0) Constructor. | RoundedRectangle

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.

Wed Nov 15 2017, 09:50 AM +01:00