Packageorg.aswing.border
Classpublic class DecorateBorder
ImplementsBorder
SubclassesBevelBorder, CaveBorder, EmptyBorder, LineBorder, SideLineBorder, SimpleTitledBorder, TitledBorder

DecorateBorder make your border can represented as many border arounded. DecorateBorder is a abstract class, you need to inherit it to implement your real decrator border.

Note:You should only need to override:

methods in sub-class.



Public Methods
 MethodDefined by
  
DecorateBorder
  
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp.
DecorateBorder
  
You should override this method to count this border's insets.
DecorateBorder
  
getDisplay(c:Component):DisplayObject
You should override this method to return the display object.
DecorateBorder
  
getDisplayImp():DisplayObject
Override this method in sub-class to return the display object if needed.
DecorateBorder
  
Returns current interior border.
DecorateBorder
  
setInterior(interior:Border):void
Sets new interior border.
DecorateBorder
  
call super.paintBorder paint the border first and then paint the interior border on the interior bounds.
DecorateBorder
  
Override this method in sub-class to draw border on the specified mc.
DecorateBorder
Constructor detail
DecorateBorder()constructor
public function DecorateBorder(interior:Border)Parameters
interior:Border
Method detail
getBorderInsets()method
public final function getBorderInsets(c:Component, bounds:IntRectangle):Insets

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

Parameters
c:Component — the component for which this border insets value applies
 
bounds:IntRectangle — the bounds of the border would paint in.

Returns
Insets

See also

getBorderInsetsImp()method 
public function getBorderInsetsImp(c:Component, bounds:IntRectangle):Insets

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

Parameters
c:Component
 
bounds:IntRectangle

Returns
Insets

See also

getDisplay()method 
public final function getDisplay(c:Component):DisplayObject

You should override this method to return the display object.

Parameters
c:Component

Returns
DisplayObject

See also

getDisplayImp()method 
public function getDisplayImp():DisplayObject

Override this method in sub-class to return the display object if needed.

Returns
DisplayObject — a display object, or null, do not need a display object.
getInterior()method 
public function getInterior():Border

Returns current interior border.

Returns
Border — current interior border
setInterior()method 
public function setInterior(interior:Border):void

Sets new interior border.

Parameters
interior:Border — the new interior border
updateBorder()method 
public final function updateBorder(c:Component, g:Graphics2D, bounds:IntRectangle):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.

Parameters
c:Component
 
g:Graphics2D
 
bounds:IntRectangle

See also

updateBorderImp()method 
public function updateBorderImp(com:Component, g:Graphics2D, bounds:IntRectangle):void

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

Parameters
com:Component — the component for which this border is being painted
 
g:Graphics2D — the paint graphics
 
bounds:IntRectangle — the bounds of border