com.bff.musicjukebox.ui.components
Class GradientPainter

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

public class GradientPainter
extends WatermarkPainter


Constructor Summary
GradientPainter(java.awt.Color color1, java.awt.Color color2)
           
 
Method Summary
 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
actionPerformed, getCommands, 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

GradientPainter

public GradientPainter(java.awt.Color color1,
                       java.awt.Color color2)
Method Detail

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