Main Page | Packages | Class Tree | Index | Help

xp.system

class UIGraphics

Object
  |
  +--xp.system.UIGraphics


class UIGraphics
extends Object

UIGraphics
Drawing routines to help Border class draw backgrounds and borders


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Method Summary

public static
deleteMask ( t: MovieClip )
Removes a mask object from a component

public static
drawBorder ( t: MovieClip, x: Number, y: Number, w: Number, h: Number, borderBrush: IBrush, borderStyle: Number, borderWidth: Thickness, borderRadius: CornerRadius )
Draw a border round a component

public static
drawFocusBorder ( t: MovieClip, x: Number, y: Number, w: Number, h: Number, br: CornerRadius )
Draw a border round a component

public static
drawMask ( t: MovieClip, x: Number, y: Number, w: Number, h: Number )
Createas a mask object for a component

public static
drawRect ( t: MovieClip, x: Number, y: Number, w: Number, h: Number, brush: IBrush, r: CornerRadius )
Draws a filled rectangle

public static
drawShadow ( t: MovieClip, x: Number, y: Number, w: Number, h: Number, br: CornerRadius, dir: String )
Draws a shadow width a rounded corner



Method Documentation

deleteMask

public static function deleteMask(t: MovieClip)
Removes a mask object from a component

Parameters:
t
target clip

drawBorder

public static function drawBorder(t: MovieClip,
 x: Number,
 y: Number,
 w: Number,
 h: Number,
 borderBrush: IBrush,
 borderStyle: Number,
 borderWidth: Thickness,
 borderRadius: CornerRadius)
Draw a border round a component

Parameters:
t
target clip
x
x location
y
y location
w
width
h
height
borderBrush
The brush to use to paint the border
borderStyle
The style of border
borderWidth
The width of the border sides
borderRadius
The corner radii of the border

drawFocusBorder

public static function drawFocusBorder(t: MovieClip,
 x: Number,
 y: Number,
 w: Number,
 h: Number,
 br: CornerRadius)
Draw a border round a component

Parameters:
t
target clip
x
x location
y
y location
w
width
h
height
br
The corner radii of the border

drawMask

public static function drawMask(t: MovieClip,
 x: Number,
 y: Number,
 w: Number,
 h: Number)
Createas a mask object for a component

Parameters:
t
target cliptarget clip
x
x location
y
y location
w
width
h
height

drawRect

public static function drawRect(t: MovieClip,
 x: Number,
 y: Number,
 w: Number,
 h: Number,
 brush: IBrush,
 r: CornerRadius)
Draws a filled rectangle

Parameters:
t
target clip
x
x location
y
y location
w
width
h
height
brush
Brush to paint the fill
r
radius - (CornerRadius - topLeft,topRight,bottomRight,bottomLeft)

drawShadow

public static function drawShadow(t: MovieClip,
 x: Number,
 y: Number,
 w: Number,
 h: Number,
 br: CornerRadius,
 dir: String)
Draws a shadow width a rounded corner

Parameters:
t
target clip
x
x location
y
y location
w
width
h
height
br
corner radius
dir

The documentation was generated from the following file:


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