org.formaria.swing.painter
Class StripButtonPainter
java.lang.Object
org.formaria.swing.painter.GradientButtonPainter
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StripButtonPainter
public StripButtonPainter()
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 contextobj - The object/component being paintedw - the width coordinateh - 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: