| Package | org.aswing |
| Interface | public interface GroundDecorator extends Decorator |
| Implementors | AssetBackground, BasicFrameTitleBarBG, DefaultEmptyDecoraterResource, GradientBackground, SolidBackground |
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)
| Method | Defined by | ||
|---|---|---|---|
![]() |
getDisplay(c:Component):DisplayObject
Returns the display object which is used as the component decorator.
| Decorator | |
|
Updates the decorator.
| GroundDecorator | ||
| updateDecorator | () | method |
public function updateDecorator(c:Component, g:Graphics2D, b:IntRectangle):voidUpdates the decorator.
Parametersc: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.
|