|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.swing.spinner.icons.ArrowIcon
public class ArrowIcon
An Icon showing an arrow with a specifiable direction and
size. For example you can use it as the Icon for a start button of a timer.
SquareIcon| Constructor Summary | |
|---|---|
ArrowIcon(int direction)
Creates a new ArrowIcon with the specified direction and the default size of 8 pixels. |
|
ArrowIcon(int direction,
int iconSize)
Creates a new ArrowIcon with the specified direction and size. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Returns the specified or default size depending on the chosen constructor. |
int |
getIconWidth()
Returns the specified or default size depending on the chosen constructor. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
DOCUMENT ME! |
void |
paintTriangle(java.awt.Graphics g,
int x,
int y,
int size,
boolean isEnabled,
java.awt.Color foreground)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrowIcon(int direction)
SwingConstants
final fields:
SwingConstants.WESTSwingConstants.EASTSwingConstants.NORTHSwingConstants.SOUTH
public ArrowIcon(int direction,
int iconSize)
SwingConstants
final fields:
SwingConstants.WESTSwingConstants.EASTSwingConstants.NORTHSwingConstants.SOUTH
| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconc - DOCUMENT ME!g - DOCUMENT ME!x - DOCUMENT ME!y - DOCUMENT ME!
public void paintTriangle(java.awt.Graphics g,
int x,
int y,
int size,
boolean isEnabled,
java.awt.Color foreground)
g - DOCUMENT ME!x - DOCUMENT ME!y - DOCUMENT ME!size - DOCUMENT ME!isEnabled - DOCUMENT ME!foreground - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||