Main Page | Packages | Class Tree | Index | Help

xp.system

class Border

Object
  |
  +--xp.system.Border

Implemented Interfaces: IBorder
All Known Subclasses: ButtonBorder, ItemsBorder, RowBorder

class Border
extends Object

Border
Control the draw of the background and borders of a control


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Method Summary

public
drawBackground ( control ): Void
Draws the component background

public
drawBackgroundState ( control ): Void
Draws the component background to reflect its current state

public
drawBorder ( control ): Void
Draws the component border

public
drawFocus ( control, state ): Void
Draws the focus rectangle round the component

public
drawShadow ( control ): Void
Draws the component shadow

public static
getDefaultInstance ( )
Gets a reference to the static default instance

public
initBorder ( control ): Void
Initialises the component background and borders

public static
sizeSkin ( t: MovieClip, w: Number, h: Number ): Void
sizes a skin clip without scaling the border/corner widths handles 3 element (L,C,R) or (T,C,B) and 9 elements (TL,T,TR,L,C,R,BL,B,BR) t.skins



Method Documentation

drawBackground

public function drawBackground(control): Void
Draws the component background

Specified by:
drawBackground in interface IBorder

Parameters:
control
The control to draw the background for

drawBackgroundState

public function drawBackgroundState(control): Void
Draws the component background to reflect its current state

Specified by:

Parameters:
control
The control to draw the background for

drawBorder

public function drawBorder(control): Void
Draws the component border

Specified by:
drawBorder in interface IBorder

Parameters:
control
The control to draw the border for

drawFocus

public function drawFocus(control,
 state): Void
Draws the focus rectangle round the component

Specified by:
drawFocus in interface IBorder

Parameters:
control
The control to draw the focus for
state
True for focused false otherwise

drawShadow

public function drawShadow(control): Void
Draws the component shadow

Specified by:
drawShadow in interface IBorder

Parameters:
control
The control to draw the shadow for

getDefaultInstance

public static function getDefaultInstance()
Gets a reference to the static default instance

initBorder

public function initBorder(control): Void
Initialises the component background and borders

Specified by:
initBorder in interface IBorder

Parameters:
control
The control to initialise

sizeSkin

public static function sizeSkin(t: MovieClip,
 w: Number,
 h: Number): Void
sizes a skin clip without scaling the border/corner widths handles 3 element (L,C,R) or (T,C,B) and 9 elements (TL,T,TR,L,C,R,BL,B,BR) t.skins

Parameters:
t
The target clip
w
The new width
h
The new height

The documentation was generated from the following file:


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