public class ArrowIcon extends Object implements Icon, Serializable
| Constructor and Description |
|---|
ArrowIcon(int w,
int h,
int direction)
Creates a new, solid
ArrowIcon for the given direction. |
ArrowIcon(int w,
int h,
int direction,
boolean solid)
Creates a new
ArrowIcon for the given direction. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public ArrowIcon(int w, int h, int direction)
ArrowIcon for the given direction.w - Arrow widthh - Arrow heightdirection - Direction pointing at: one of SwingConstants' NORTH, SOUTH, EAST
or WEST.public ArrowIcon(int w, int h, int direction, boolean solid)
ArrowIcon for the given direction.w - Arrow widthh - Arrow heightdirection - Direction pointing at: one of SwingConstants' NORTH, SOUTH, EAST
or WEST.solid - true: Solid, false: Outlinepublic int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface IconCopyright © 2004–2016. All rights reserved.