com.bff.musicjukebox.ui.components
Class FillPainter

java.lang.Object
  extended by com.bff.musicjukebox.ui.components.WatermarkPainter
      extended by com.bff.musicjukebox.ui.components.FillPainter
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.HierarchyListener, java.util.EventListener

public class FillPainter
extends WatermarkPainter


Constructor Summary
FillPainter()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Perform the action given by the actionCommand of the specified ActionEvent.
 java.lang.String[] getCommands()
          Return the list of commands that can be sent to this painter.
 void paint(java.awt.Graphics g)
          Paint onto the graphics object indicated by the parameter.
 
Methods inherited from class com.bff.musicjukebox.ui.components.WatermarkPainter
getComponent, getImage, hierarchyChanged, loadImage, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillPainter

public FillPainter()
Method Detail

getCommands

public java.lang.String[] getCommands()
Description copied from class: WatermarkPainter
Return the list of commands that can be sent to this painter. These commands will be sent in the form of an actionCommand on an java.awt.ActionEvent sent to actionPerformed.

Overrides:
getCommands in class WatermarkPainter
Returns:
the commands which this painter understands

paint

public void paint(java.awt.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

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Description copied from class: WatermarkPainter
Perform the action given by the actionCommand of the specified ActionEvent. Should support the command list returned by getCommands.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class WatermarkPainter
Parameters:
ae - the ActionEvent containing a command to perform