|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.swing.icon.DoubleArrowIcon
public class DoubleArrowIcon
A java icon with two flat arrows pointing up, left, right, or down.
| Field Summary | |
|---|---|
static int |
DIRECTION_DOWN
Constant for arrows pointing down. |
static int |
DIRECTION_LEFT
Constant for arrows pointing left. |
static int |
DIRECTION_RIGHT
Constant for arrows pointing right. |
static int |
DIRECTION_UP
Constant for arrows pointing up. |
| Constructor Summary | |
|---|---|
DoubleArrowIcon(int direction)
Constructs a new double arrow icon that has the default size and arrows that point in the specified direction. |
|
DoubleArrowIcon(int size,
int direction)
Constructs a new double arrow icon with the specified size and arrows that points in the specified direction. |
|
| Method Summary | |
|---|---|
int |
getDirection()
Returns the current direction of the arrow. |
int |
getIconHeight()
Gets the height of this arrow icon. |
int |
getIconWidth()
Gets the width of this arrow icon. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints this icon on the specified graphics object at the specified location. |
void |
setDirection(int d)
Alters the direction of the arrows. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DIRECTION_UP
public static final int DIRECTION_DOWN
public static final int DIRECTION_LEFT
public static final int DIRECTION_RIGHT
| Constructor Detail |
|---|
public DoubleArrowIcon(int direction)
direction - the direction of the arrows. One of DIRECTION_UP,
DIRECTION_DOWN, DIRECTION_LEFT, or DIRECTION_RIGHTS.
public DoubleArrowIcon(int size,
int direction)
size - the size for the new icon in pixelsdirection - the direction of the arrows. One of DIRECTION_UP,
DIRECTION_DOWN, DIRECTION_LEFT, or DIRECTION_RIGHTS| Method Detail |
|---|
public void setDirection(int d)
d - the new direction. One of DIRECTION_UP,
DIRECTION_DOWN, DIRECTION_LEFT, or DIRECTION_RIGHTS.public int getDirection()
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface Iconc - ignored, may be nullg - the graphics object to paint onx - the x-offset for this icony - the y-offset for this iconpublic int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Icon
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||