Class org.aswing.border.SideLineBorder

Description

A border that draw a line at one side of a component.

Field Index

EAST, NORTH, SOUTH, WEST

Method Index

new SideLineBorder()
getBorderInsetsImp(), paintBorderImp()

Inherited from DecorateBorder

Constructor Detail

SideLineBorder

public function SideLineBorder(interior:Border, side:Number, color:ASColor, thickness:Number)

SideLineBorder(interior:Border, side:Number, color:ASColor, thickness:Number)
SideLineBorder(interior:Border, side:Number, color:ASColor)
SideLineBorder(interior:Border, side:Number)
SideLineBorder(interior:Border)
SideLineBorder()

Parameters

interiorinterior border. Default is null;
sidethe side of the line. Must be one of bottom value:
  • #NORTH
  • #SOUTH
  • #EAST
  • #WEST
.Default is NORTH.
colorthe color of the border. Default is ASColor.BLACK
thicknessthe thickness of the border. Default is 1

Field Detail

NORTH

static public NORTH:Number
The north side constraint (top of component).

SOUTH

static public SOUTH:Number
The south side constraint (bottom of component).

EAST

static public EAST:Number
The east side constraint (right side of component).

WEST

static public WEST:Number
The west side constraint (left side of component).

Method Detail

paintBorderImp

public function paintBorderImp(c:Component, g:Graphics, b:Rectangle):Void

Description copied from DecorateBorder

Override this method in sub-class to draw border on the specified mc.

Overrides

paintBorderImp() in org.aswing.border.DecorateBorder

getBorderInsetsImp

public function getBorderInsetsImp(c:Component, b:Rectangle):Insets

Description copied from DecorateBorder

You should override this method to count this border's insets.

Overrides

getBorderInsetsImp() in org.aswing.border.DecorateBorder