|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.util.swing.IlvArrow
public class IlvArrow
IlvArrow implements an icon that is a triangular arrow pointing
in one of the four cardinal directions.
| Field Summary |
|---|
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
IlvArrow(int direction)
Creates a new arrow in the specified direction. |
|
IlvArrow(int direction,
Color foreground,
Color background)
Creates a new arrow in the specified direction. |
|
IlvArrow(int direction,
Color foreground,
Color background,
int size)
Creates a new arrow in the specified direction. |
|
IlvArrow(int direction,
Color foreground,
Color background,
int width,
int height)
Creates a new arrow in the specified direction. |
|
IlvArrow(int direction,
int size)
Creates a new arrow in the specified direction. |
|
IlvArrow(int direction,
int width,
int height)
Creates a new arrow in the specified direction. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Returns the icon's height. |
int |
getIconWidth()
Returns the icon's width. |
Insets |
getInsets()
Returns the icon insets. |
boolean |
isTransparent()
Returns whether the icon is transparent. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draws the arrow icon at the specified location. |
protected void |
paintTriangle(Graphics g,
Color c,
int x,
int y,
int width,
int height)
Draws the triangular arrow using the specified color. |
void |
setInsets(Insets insets)
Sets the icon insets. |
void |
setTransparent(boolean transparent)
Sets whether the icon is transparent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvArrow(int direction)
rendered on.
direction - The arrow direction, which must be one of the following
SwingConstants: NORTH, EAST,
SOUTH, or WEST.
public IlvArrow(int direction,
Color foreground,
Color background)
direction - The arrow direction, which must be one of the following
SwingConstants: NORTH, EAST,
SOUTH, or WEST.foreground - The foreground color of the arrow.background - The background color of the arrow.
public IlvArrow(int direction,
int size)
rendered on.
direction - The arrow direction, which must be one of the following
SwingConstants: NORTH, EAST,
SOUTH, or WEST.size - The arrow width and height.
public IlvArrow(int direction,
Color foreground,
Color background,
int size)
direction - The arrow direction, which must be one of the following
SwingConstants: NORTH, EAST,
SOUTH, or WEST.foreground - The foreground color of the arrow.background - The background color of the arrow.size - The arrow width and height.
public IlvArrow(int direction,
int width,
int height)
rendered on.
direction - The arrow direction, which must be one of the following
SwingConstants: NORTH, EAST,
SOUTH, or WEST.width - The arrow width.height - The arrow height.
public IlvArrow(int direction,
Color foreground,
Color background,
int width,
int height)
direction - The arrow direction, which must be one of the following
SwingConstants: NORTH, EAST,
SOUTH, or WEST.foreground - The foreground color of the arrow.background - The background color of the arrow.width - The arrow width.height - The arrow height.| Method Detail |
|---|
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface Iconc - The component that the icon is being rendered on.g - The graphics context.x - The x position to draw the icon.y - The y position to draw the icon.
protected void paintTriangle(Graphics g,
Color c,
int x,
int y,
int width,
int height)
public final int getIconWidth()
getIconWidth in interface Iconpublic final int getIconHeight()
getIconHeight in interface Iconpublic final boolean isTransparent()
public final void setTransparent(boolean transparent)
public final Insets getInsets()
public final void setInsets(Insets insets)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||