public class ArrowIcon extends Object implements Icon, SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Constructor and Description |
|---|
ArrowIcon(int direction) |
ArrowIcon(int direction,
Color shadow,
Color darkShadow,
Color highlight) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDirection() |
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
paintTriangle(Graphics g,
int x,
int y,
int size,
int direction,
boolean isEnabled) |
void |
setDirection(int dir) |
public int getIconHeight()
getIconHeight in interface Iconpublic int getIconWidth()
getIconWidth in interface Iconpublic int getDirection()
public void setDirection(int dir)
public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled)
Copyright © 2021. All rights reserved.