|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.rsta.ac.java.DecoratableIcon
public class DecoratableIcon
An icon that can have an optional "decorations" icon beside of it.
| Constructor Summary | |
|---|---|
DecoratableIcon(Icon mainIcon)
Constructor. |
|
DecoratableIcon(int width,
Icon mainIcon)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addDecorationIcon(Icon decoration)
Adds a decoration icon. |
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
setDeprecated(boolean deprecated)
Sets whether this icon is for a deprecated item. |
void |
setMainIcon(Icon icon)
Sets the main icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecoratableIcon(Icon mainIcon)
mainIcon - The "main" icon. This cannot be null.
public DecoratableIcon(int width,
Icon mainIcon)
w - The width for this icon.mainIcon - The "main" icon. This cannot be null.| Method Detail |
|---|
public void addDecorationIcon(Icon decoration)
decoration - A new decoration icon. This cannot be
null.setMainIcon(Icon)public int getIconHeight()
getIconHeight in interface Iconpublic int getIconWidth()
getIconWidth in interface Icon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface Iconpublic void setDeprecated(boolean deprecated)
deprecated - Whether this icon is for a deprecated item.public void setMainIcon(Icon icon)
icon - The "main" icon. This cannot be null.#setDecorationIcon(Icon)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||