|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.swing.icon.BevelArrowIcon
public class BevelArrowIcon
A java icon with a triangular shadowed arrow pointing up or down. Original package: jp.gr.java_conf.tame.swing.icon This class is in the public domain.
| Field Summary | |
|---|---|
static int |
DOWN
Constant for arrows pointing down. |
static int |
UP
Constant for arrows pointing up. |
| Constructor Summary | |
|---|---|
BevelArrowIcon(Color edge1,
Color edge2,
Color fill,
int size,
int direction)
Constructs a new bevel arrow icon with the specified colors, size and orientation. |
|
BevelArrowIcon(int direction,
boolean isRaisedView,
boolean isPressedView)
Constructs a default size bevel arrow icon with the specified style and an arrow that points in the specified direction. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Gets the height of this bevel arrow icon. |
int |
getIconWidth()
Gets the width of this bevel 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UP
public static final int DOWN
| Constructor Detail |
|---|
public BevelArrowIcon(int direction,
boolean isRaisedView,
boolean isPressedView)
direction - the direction of the arrow. One of DIRECTION_UP,
DIRECTION_DOWNisRaisedView - whether the icon is raisedisPressedView - whether the icon is pressed
public BevelArrowIcon(Color edge1,
Color edge2,
Color fill,
int size,
int direction)
direction - the direction of the arrow. One of DIRECTION_UP,
DIRECTION_DOWNedge1 - the hihglight color for the icon edgeedge2 - the shadow color for the icon edgefill - the background color for the iconsize - the size in pixels for the icon| Method Detail |
|---|
public void setDirection(int d)
d - one of UP or DOWN
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 | |||||||||