Class org.aswing.border.DecorateBorder

Implemented Interfaces

Border

Description

DecorateBorder make your border can represented as many border arounded.

Note:You should only need to override:

methods in sub-class generally.

Method Index

new DecorateBorder()
getBorderInsets(), getBorderInsetsImp(), paintBorder(), paintBorderImp(), uninstallBorder(), uninstallBorderImp()

Constructor Detail

DecorateBorder

public function DecorateBorder(interior:Border)

Method Detail

paintBorderImp

public function paintBorderImp(com:Component, g:Graphics, bounds:Rectangle):Void

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

Parameters

gthe paint graphics
boundsthe bounds of border

uninstallBorderImp

public function uninstallBorderImp(com:Component):Void

Override this method in sub-class to clear and remove the border things you created for this component.

Parameters

com

See Also

getBorderInsetsImp

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

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

See Also

paintBorder

public function paintBorder(c:Component, g:Graphics, bounds:Rectangle):Void

call super.paintBorder paint the border first and then paint the interior border on the interior bounds.
Note:subclass should not override this method, should override paintBorderImp.

Specified By

paintBorder() in org.aswing.border.Border

See Also

uninstallBorder

public function uninstallBorder(c:Component):Void

call super.uninstallBorder unpaint the border first and then uninstall the interior border .
Note:subclass should not override this method, should override paintBorderImp.

Specified By

uninstallBorder() in org.aswing.border.Border

See Also

getBorderInsets

public function getBorderInsets(c:Component, bounds:Rectangle):Insets

Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp.

Parameters

cthe component for which this border insets value applies
boundsthe bounds of the border would paint in.

Specified By

getBorderInsets() in org.aswing.border.Border

See Also