|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.swing.ArrowIcon
Creates ArrowIcon's for buttons.
Field Summary | |
protected int |
direction
|
static int |
DOWN
|
protected int |
height
|
static int |
UP
|
protected int |
width
|
Constructor Summary | |
ArrowIcon(int direction)
Constructor which sets the direction of the arrow |
Method Summary | |
int |
getIconHeight()
Get the icon height |
int |
getIconWidth()
Get the icon width |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the arrow icon. |
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
protected int width
protected int height
protected int direction
Constructor Detail |
public ArrowIcon(int direction)
direction
- The direction of the icon. Must be one of UP or DOWN.Method Detail |
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
c
- Component used to get the foreground colorg
- The graphics context used to drawx
- The x position at which to painty
- The y position at which to paintpublic int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |