| Package | xp.graphics |
| Class | public class BorderRectangle |
| Inheritance | BorderRectangle RoundRectangle flash.geom.Rectangle |
| Property | Defined by | ||
|---|---|---|---|
![]() | cornerRadius : CornerRadius
Set the corner radius
| RoundRectangle | |
| innerRectangle : RoundRectangle
[read-only]
| BorderRectangle | ||
| thickness : Thickness
The thickness of the borders
| BorderRectangle | ||
| Method | Defined by | ||
|---|---|---|---|
|
BorderRectangle(x:int = 0, y:int = 0, width:int = 0, height:int = 0, borderThickness:* = null, cornerRadius:* = null)
| BorderRectangle | ||
|
initialize(x:int, y:int, width:int, height:int, borderThickness:Thickness = null, cornerRadius:CornerRadius = null):void
Initialize the internal structures and properties
| BorderRectangle | ||
|
setEmpty():void
Clears the object and all internal structures
| BorderRectangle | ||
![]() |
setRectangle(x:int, y:int, w:int, h:int):void
Set the x, y, width and height properties of this object
| RoundRectangle | |
|
validate():void
Validates and update all the internal properties and ensures that the InnerRectangle and InnerRadius are in sync.
| BorderRectangle | ||
| innerRectangle | property |
innerRectangle:RoundRectangle [read-only]Implementation
public function get innerRectangle():RoundRectangle
| thickness | property |
thickness:Thickness [read-write]The thickness of the borders
Implementation public function get thickness():Thickness
public function set thickness(value:Thickness):void
| BorderRectangle | () | constructor |
public function BorderRectangle(x:int = 0, y:int = 0, width:int = 0, height:int = 0, borderThickness:* = null, cornerRadius:* = null)Parameters
x:int (default = 0) |
|
y:int (default = 0) |
|
width:int (default = 0) |
|
height:int (default = 0) |
|
borderThickness:* (default = null) |
|
cornerRadius:* (default = null) |
| initialize | () | method |
public function initialize(x:int, y:int, width:int, height:int, borderThickness:Thickness = null, cornerRadius:CornerRadius = null):voidInitialize the internal structures and properties
Parametersx:int |
|
y:int |
|
width:int |
|
height:int |
|
borderThickness:Thickness (default = null) |
|
cornerRadius:CornerRadius (default = null) |
| setEmpty | () | method |
public override function setEmpty():voidClears the object and all internal structures
| validate | () | method |
public function validate():voidValidates and update all the internal properties and ensures that the InnerRectangle and InnerRadius are in sync. If update is not called the objects state maybe invalid