Packageorg.aswing
Interfacepublic interface Border extends Decorator
ImplementorsDecorateBorder, DefaultEmptyDecoraterResource

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

You can either return a display object to be the border or just return null and paint the border in updateBorder method use the component g(Graphics).



Public Methods
 MethodDefined by
  
Returns the insets of the border.
Border
 Inherited
getDisplay(c:Component):DisplayObject
Returns the display object which is used as the component decorator.
Decorator
  
Updates the border.
Border
Method detail
getBorderInsets()method
public function getBorderInsets(c:Component, b:IntRectangle):Insets

Returns the insets of the border.

Parameters
c:Component — the component which owns the border.
 
b:IntRectangle — the bounds of the border should be.

Returns
Insets
updateBorder()method 
public function updateBorder(c:Component, g:Graphics2D, b:IntRectangle):void

Updates the border.

Parameters
c:Component — the component which owns the border.
 
g:Graphics2D — the graphics of the component, you can paint picture onto it.
 
b:IntRectangle — the bounds of the border should be.