org.formaria.swing.painter
Class GradientToggleButtonPainter

java.lang.Object
  extended by org.formaria.swing.painter.GradientButtonPainter
      extended by org.formaria.swing.painter.GradientToggleButtonPainter

public class GradientToggleButtonPainter
extends GradientButtonPainter

A painter for toggle button backgrounds.

Copyright (c) Formaria Ltd., 2008
License: see license.txt


Field Summary
 
Fields inherited from class org.formaria.swing.painter.GradientButtonPainter
NORMAL, NUM_STATES, PRESSED, PRESSED_SELECTED, ROLLOVER, ROLLOVER_SELECTED, SELECTED
 
Constructor Summary
GradientToggleButtonPainter()
           
 
Method Summary
 void paint(java.awt.Graphics2D g, javax.swing.JComponent obj, int w, int h)
          Paints a background for a button
 
Methods inherited from class org.formaria.swing.painter.GradientButtonPainter
getArea, paint, setSelectedHighlight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientToggleButtonPainter

public GradientToggleButtonPainter()
Method Detail

paint

public void paint(java.awt.Graphics2D g,
                  javax.swing.JComponent obj,
                  int w,
                  int h)
Paints a background for a button

Overrides:
paint in class GradientButtonPainter
Parameters:
g - the graphics context
obj - The object/component being painted
w - the width coordinate
h - the height coordinate

Copyright: Copyright (c) Formaria Ltd., 2008
License: see license.txt $Revision: 1.3 $