Interface org.aswing.border.Border

Description

Interface describing an object capable of rendering a border around the edges of a component.

Note that one Border most just can paint to one Component. Because the paintBorder method most should clear the last paintings.

Method Index

getBorderInsets(), paintBorder(), uninstallBorder()

Method Detail

paintBorder

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

Paints the border on component in a bounds with the graphics. If this if the first time to paint on the specified component, there may need some install operation, for example create MCs on the specified mc if needed.

Parameters

cthe component for which this border is being painted
gthe paint graphics
boundsthe bounds of border

See Also

uninstallBorder

public function uninstallBorder(c:Component):Void

Removes things in the border object related to the component. For example remove the MCs created at the first paint time if needed.

There is not installIcon method, so you must install icon related things at the first time of paintIcon, for example for example attach a MC if needed.

Parameters

cthe component where the border whould uninstall from

See Also

getBorderInsets

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

Returns the insets of the border.

Parameters

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

Return

the insets of the border