|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.WatermarkPainter
public abstract class WatermarkPainter
This class is the abstract base class for objects that know
how to paint a WatermarkViewport. Minimally,
subclasses must override the paint method.
Note: WatermarkPainters are not designed to
be shared between viewports.
| Constructor Summary | |
|---|---|
WatermarkPainter()
|
|
| Method Summary | |
|---|---|
protected JViewportWatermark |
getComponent()
Return the viewport associated with this painter. |
void |
hierarchyChanged(java.awt.event.HierarchyEvent he)
Listens for hierarchy events on the current viewport to start or stop this painter when the component's showing state changes. |
protected abstract void |
paint(java.awt.Graphics g)
Paint onto the graphics object indicated by the parameter. |
protected void |
start()
Starts any animation that this painter might perform. |
protected void |
stop()
Stops any animation that this painter might be performing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WatermarkPainter()
| Method Detail |
|---|
protected final JViewportWatermark getComponent()
protected void start()
protected void stop()
protected abstract void paint(java.awt.Graphics g)
getComponent for size
information. The component returned is
guaranteed to be non-null as setComponent
will always be called with a non-null component
before any painting is done.
g - the graphics object on which to paintpublic void hierarchyChanged(java.awt.event.HierarchyEvent he)
hierarchyChanged in interface java.awt.event.HierarchyListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||