private static enum MenuScroller.MenuIcon extends Enum<MenuScroller.MenuIcon> implements Icon
Modifier and Type | Field and Description |
---|---|
(package private) static int[] |
XPOINTS |
(package private) int[] |
yPoints |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
static MenuScroller.MenuIcon |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MenuScroller.MenuIcon[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MenuScroller.MenuIcon UP
public static final MenuScroller.MenuIcon DOWN
public static MenuScroller.MenuIcon[] values()
for (MenuScroller.MenuIcon c : MenuScroller.MenuIcon.values()) System.out.println(c);
public static MenuScroller.MenuIcon valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon