|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjview.ContrastIcon
public class ContrastIcon
An icon that looks like the classical contrast icon.
| Nested Class Summary | |
|---|---|
static class |
ContrastIcon.Show
Test class for display. |
| Field Summary | |
|---|---|
static String |
ACTIONCOMMAND
The action-event command for contrast changes. |
static int |
DEFSIZE
The default icon size, alqways quadratically. |
private int |
size
This icon is customizable in size, but fix sized once constructed. |
| Constructor Summary | |
|---|---|
ContrastIcon()
Constructs a new brightness icon with the default size. |
|
ContrastIcon(int quadratic)
Constructs a new brightness icon with the given, quadratic size. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
The height of the icon equals the size specified on construct. |
int |
getIconWidth()
The width of the icon equals the size specified on construct. |
void |
paintIcon(Component button,
Graphics g,
int x,
int y)
Paints the icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ACTIONCOMMAND
public static final int DEFSIZE
private int size
| Constructor Detail |
|---|
public ContrastIcon()
public ContrastIcon(int quadratic)
| Method Detail |
|---|
public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Icon
public void paintIcon(Component button,
Graphics g,
int x,
int y)
paintIcon in interface Icon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||