|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.common.gui.ArrowIcon
public class ArrowIcon
An icon that draws an arrow in one of the cardinal directions. The direction is specified with the SwingConstants EAST, WEST, SOUTH and NORTH.
Field Summary | |
---|---|
protected Color |
arrowColor
the color of the arrow. |
protected int |
direction
the direction of the arrow. |
Constructor Summary | |
---|---|
ArrowIcon()
Constructs an ArrowIcon. |
|
ArrowIcon(Color arrowColor)
Constructs an ArrowIcon. |
|
ArrowIcon(int direction)
Constructs an ArrowIcon. |
|
ArrowIcon(int direction,
Color arrowColor)
Constructs an ArrowIcon. |
Method Summary | |
---|---|
Color |
getArrowColor()
Returns the color of the arrow. |
int |
getDirection()
Returns the direction of the arrow. |
int |
getIconHeight()
Returns the icon's height. |
int |
getIconWidth()
Returns the icon's width. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draw the icon at the specified location. |
void |
setArrowColor(Color c)
Set's the arrow's color. |
void |
setDirection(int dir)
Sets the arrow's direction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Color arrowColor
protected int direction
Constructor Detail |
---|
public ArrowIcon()
public ArrowIcon(Color arrowColor)
public ArrowIcon(int direction)
public ArrowIcon(int direction, Color arrowColor)
Method Detail |
---|
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
public Color getArrowColor()
public int getDirection()
public void setArrowColor(Color c)
c
- the color of the arrowpublic void setDirection(int dir)
dir
- the direction
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |