org.tigris.swidgets
Class ArrowIcon
java.lang.Object
org.tigris.swidgets.ArrowIcon
- Icon, Serializable, SwingConstants
public class ArrowIcon
extends java.lang.Object
implements Icon, Serializable, SwingConstants
A metal look and feel arrow icon that can be created to point to a
compass point.
ArrowIcon(int dir) - Construct an ArrowIcon pointing in the given direction
|
ArrowIcon
public ArrowIcon(int dir)
Construct an ArrowIcon pointing in the given direction
getIconHeight
public int getIconHeight()
Gets the height of the icon.
getIconWidth
public int getIconWidth()
Gets the height of the icon.
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the icon. The top-left corner of the icon is drawn at
the point (x, y) in the coordinate space of the graphics
context g. If this icon has no image observer, this method uses
the c component as the observer.
c
- the component to be used as the observer if this icon
has no image observerg
- the graphics contextx
- the X coordinate of the icon's top-left cornery
- the Y coordinate of the icon's top-left corner
setIconHeight
public void setIconHeight(int h)
h
- the height for the icon
setIconWidth
public void setIconWidth(int w)
w
- the width of the icon