Class AnimPainter
java.lang.Object
WatermarkPainter
AnimPainter
- All Implemented Interfaces:
- ActionListener, HierarchyListener, EventListener
public class AnimPainter
- extends WatermarkPainter
An extension of WatermarkPainter that
animates a waving Duke in the bottom right corner
of the component.
- Version:
- 1.2 10/25/2006
- Author:
- Shannon Hickey
|
Method Summary |
void |
paint(Graphics g)
Paint onto the graphics object indicated by the
parameter. |
void |
start()
Starts any animation that this painter might perform. |
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 |
AnimPainter
public AnimPainter()
paint
public void paint(Graphics g)
- Description copied from class:
WatermarkPainter
- Paint onto the graphics object indicated by the
parameter. This method can query the component
returned by
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.
- Specified by:
paint in class WatermarkPainter
- Parameters:
g - the graphics object on which to paint
start
public void start()
- Description copied from class:
WatermarkPainter
- Starts any animation that this painter might perform.
This is called when this painter is registered with a
new viewport, if the viewport's showing status is true.
It will then be called every time that component's status
changes to true.
- Overrides:
start in class WatermarkPainter
stop
public void stop()
- Description copied from class:
WatermarkPainter
- Stops any animation that this painter might be performing.
This is called when this painter is un-registered, or when
the showing status of the current viewport changes to false.
- Overrides:
stop in class WatermarkPainter