|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Decorator
Interface defining a component "decorator". Decorators allow a caller to attach additional visual effects to a component.
Method Summary | |
---|---|
Bounds |
getBounds(Component component)
Returns the bounding area of the decorator. |
AffineTransform |
getTransform(Component component)
Returns the transformation the decorator applies to the component's coordinate space. |
Graphics2D |
prepare(Component component,
Graphics2D graphics)
Prepares the graphics context into which the component or prior decorator will paint. |
void |
update()
Updates the graphics context into which the component or prior decorator was painted. |
Method Detail |
---|
Graphics2D prepare(Component component, Graphics2D graphics)
Component.paint(Graphics2D)
; decorators are called in
descending order.
component
- graphics
-
void update()
Component.paint(Graphics2D)
; decorators are called in
ascending order.
Bounds getBounds(Component component)
component
-
AffineTransform getTransform(Component component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |