|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.swing.painter.GradientButtonPainter
public class GradientButtonPainter
A painter for button backgrounds.
Copyright (c) Formaria Ltd., 2008
License: see license.txt
| Field Summary | |
|---|---|
static int |
NORMAL
|
static int |
NUM_STATES
|
static int |
PRESSED
|
static int |
PRESSED_SELECTED
|
static int |
ROLLOVER
|
static int |
ROLLOVER_SELECTED
|
static int |
SELECTED
|
| Constructor Summary | |
|---|---|
GradientButtonPainter()
|
|
| Method Summary | |
|---|---|
protected java.awt.geom.Area |
getArea(javax.swing.JComponent obj,
int w,
int h)
Get the Area of the client area |
void |
paint(java.awt.Graphics2D g,
javax.swing.JComponent obj,
int w,
int h)
Paints a background for a button |
void |
paint(java.awt.Graphics2D g,
java.lang.Object object,
int width,
int height)
|
void |
setSelectedHighlight(java.awt.Color c)
Set the selected highlight color |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NORMAL
public static final int ROLLOVER
public static final int PRESSED
public static final int SELECTED
public static final int ROLLOVER_SELECTED
public static final int PRESSED_SELECTED
public static final int NUM_STATES
| Constructor Detail |
|---|
public GradientButtonPainter()
| Method Detail |
|---|
public void paint(java.awt.Graphics2D g,
java.lang.Object object,
int width,
int height)
public void paint(java.awt.Graphics2D g,
javax.swing.JComponent obj,
int w,
int h)
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 $
protected java.awt.geom.Area getArea(javax.swing.JComponent obj,
int w,
int h)
obj - w - h -
public void setSelectedHighlight(java.awt.Color c)
c - the highlight color or null for no highlight.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||