|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.kpat.applet.TreeIcon
public class TreeIcon
Paints a circle of the specified color, with the specified letter in it.
| Field Summary | |
|---|---|
static int |
FONT_SIZE
|
static int |
ICON_SIZE
|
static int |
START_X
|
| Constructor Summary | |
|---|---|
TreeIcon()
No param constructor. |
|
TreeIcon(java.lang.String letter)
Letter-only constructor. |
|
TreeIcon(java.lang.String letter,
java.awt.Color c)
Letter- and color-specified constructor. |
|
TreeIcon(java.lang.String letter,
java.awt.Color c,
int offset)
The full-up constructor. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Required by Icon interface. |
int |
getIconWidth()
Required by Icon interface. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Required by Icon interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ICON_SIZE
public static final int FONT_SIZE
public static final int START_X
| Constructor Detail |
|---|
public TreeIcon(java.lang.String letter,
java.awt.Color c,
int offset)
public TreeIcon()
public TreeIcon(java.lang.String letter)
public TreeIcon(java.lang.String letter,
java.awt.Color c)
| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Icon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||