Main Page | Packages | Class Tree | Index | Help

xp.system

class CornerRadius

Object
  |
  +--xp.system.CornerRadius

Implemented Interfaces: ICloneable

class CornerRadius
extends Object

CornerRadius is a value type used to describe the radius of a rectangle's corners (controlled independently). It contains four number structs each corresponding to a corner: TopLeft, TopRight, BottomLeft, BottomRight. The corner radii cannot be negative.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary


bottomLeft: Number
Gets or sets the radius of the bottom left corner.


bottomRight: Number
Gets or sets the radius of the bottom right corner.

public static
CornerRadius0: CornerRadius
commonly used constants radius 0

public static
CornerRadius3: CornerRadius
commonly used constants radius 3


topLeft: Number
Gets or sets the radius of the top left corner.


topRight: Number
Gets or sets the radius of the top right corner.

Constructor

public
CornerRadius ( )
Initializes a new instance of the CornerRadius structure.

Method Summary

public
clone ( ): Object
Creates a shallow copy of the current Object



Field Documentation

bottomLeft

var bottomLeft: Number
Gets or sets the radius of the bottom left corner.

bottomRight

var bottomRight: Number
Gets or sets the radius of the bottom right corner.

CornerRadius0

public static var CornerRadius0: CornerRadius
commonly used constants radius 0

CornerRadius3

public static var CornerRadius3: CornerRadius
commonly used constants radius 3

topLeft

var topLeft: Number
Gets or sets the radius of the top left corner.

topRight

var topRight: Number
Gets or sets the radius of the top right corner.


Constructor Documentation

CornerRadius

public function CornerRadius()
Initializes a new instance of the CornerRadius structure.

Create a new instance of a CornerRadius Accepts either: CornerRadius(1) Single number, all properties are set to the value " CornerRadius(1,2,3,4) Four numbers representing values tl,tr,br,bl " CornerRadius("1 2 3 4") String with 4 values representing tl,tr,br,bl CornerRadius({topLeft:1,topRight:2,bottomLeft:3,bottomRight:4}) An object with the properties topLeft,topRight,bottomRight and bottomLeft


Method Documentation

clone

public function clone(): Object
Creates a shallow copy of the current Object

Specified by:
clone in interface ICloneable


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc