org.formaria.swing.painter
Class StripButtonPainter

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

public class StripButtonPainter
extends GradientButtonPainter

A painter for strip button backgrounds.

Copyright (c) Formaria Ltd., 2001-2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.


Field Summary
 
Fields inherited from class org.formaria.swing.painter.GradientButtonPainter
NORMAL, NUM_STATES, PRESSED, PRESSED_SELECTED, ROLLOVER, ROLLOVER_SELECTED, SELECTED
 
Constructor Summary
StripButtonPainter()
           
 
Method Summary
protected  java.awt.geom.Area getArea(javax.swing.JComponent obj, int w, int h)
          Get the button shape depending upon the position of the button
 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
paint, setSelectedHighlight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StripButtonPainter

public StripButtonPainter()
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 $


getArea

protected java.awt.geom.Area getArea(javax.swing.JComponent obj,
                                     int w,
                                     int h)
Get the button shape depending upon the position of the button

Overrides:
getArea in class GradientButtonPainter
Returns: