Border
DecorateBorder make your border can represented as many border arounded.
Note:You should only need to override:
paintBorderImp
uninstallBorderImp
getBorderInsetsImp
public function paintBorderImp(com:Component, g:Graphics, bounds:Rectangle):Void
Override this method in sub-class to draw border on the specified mc.
g | the paint graphics |
bounds | the bounds of border |
public function uninstallBorderImp(com:Component):Void
Override this method in sub-class to clear and remove the border things you created for this component.
com |
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.
paintBorder() in org.aswing.border.Border
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.
uninstallBorder() in org.aswing.border.Border
public function getBorderInsets(c:Component, bounds:Rectangle):Insets
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp.
c | the component for which this border insets value applies |
bounds | the bounds of the border would paint in. |
getBorderInsets() in org.aswing.border.Border