|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.image.EmptyIcon
public final class EmptyIcon
A empty icon is a blank icon useful for ensuring alignment in menus between menuitems that have and do not have icons.
Icon
Field Summary | |
---|---|
static EmptyIcon |
LARGE
Convenience object for large icons, whose size matches the size of large icons in Sun's graphics repository. |
static EmptyIcon |
SMALL
Convenience object for small icons, whose size matches the size of small icons in Sun's graphics repository. |
Constructor Summary | |
---|---|
EmptyIcon(IconSize size)
EmptyIcon objects are always square, having identical height and width. |
Method Summary | |
---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
This implementation is empty, and paints nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EmptyIcon SMALL
public static final EmptyIcon LARGE
Constructor Detail |
---|
public EmptyIcon(IconSize size)
size
- The size of the empty icon. Icons are always equal on all
sides.Method Detail |
---|
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |