|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.widgets.BevelArrowIcon
An arrow icon used in (UIC) Table headers to show the sorting direction. The sizing of this arrow is based on the font that is set.
Field Summary | |
static int |
DOWN
Direction for the setDirection method. |
static int |
NONE
Direction for the setDirection method. |
static int |
UP
Direction for the setDirection method. |
Constructor Summary | |
BevelArrowIcon(Color edge1,
Color edge2,
Color fill,
int direction)
Create an icon with specific colors; edge1 is left and top, edge2 is right and fill is the center part. |
|
BevelArrowIcon(int direction,
boolean isRaisedView,
boolean isPressedView)
Provides an icon using the theme colors based on the arguments. |
Method Summary | |
int |
getIconHeight()
Icon Interface method |
int |
getIconWidth()
Icon Interface method |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Icon Interface method |
void |
setDirection(int direction)
The direction of the icon can be changed at any time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NONE
public static final int UP
public static final int DOWN
Constructor Detail |
public BevelArrowIcon(int direction, boolean isRaisedView, boolean isPressedView)
direction
- see setDirection()isRaisedView
- paint the icon 'raised' instead of sunkenisPressedView
- show an icon with a rollover colorpublic BevelArrowIcon(Color edge1, Color edge2, Color fill, int direction)
Method Detail |
public void setDirection(int direction)
BevelArrowIcon.UP
and BevelArrowIcon.DOWN
for the argument direction.BevelArrowIcon.NONE
to simply not
draw the icon at all.
direction
- the direction of the arrow, or NONE for an invisible icon.public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |