Packageorg.aswing
Interfacepublic interface GroundDecorator extends Decorator
ImplementorsAssetBackground, BasicFrameTitleBarBG, DefaultEmptyDecoraterResource, GradientBackground, SolidBackground

Decorator for background or foreground of a components.

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

(Maybe it is not good to paint on the component graphics for foreground decorator since component graphics is not on top of component children)



Public Methods
 MethodDefined by
 Inherited
getDisplay(c:Component):DisplayObject
Returns the display object which is used as the component decorator.
Decorator
  
Updates the decorator.
GroundDecorator
Method detail
updateDecorator()method
public function updateDecorator(c:Component, g:Graphics2D, b:IntRectangle):void

Updates the decorator.

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