|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.visuals.ArrowIcon
IconInterface implementation that draws an arrow to fit in the size passed in to the paint.
| Constructor Summary | |
ArrowIcon()
Default constructor. |
|
ArrowIcon(int orient)
Constructor to set the orientation of the arrow. |
|
| Method Summary | |
Insets |
getInsets()
Get the insets of the ArrowIcon. |
Dimension |
getMinimumSize()
Get the minimumSize of the ArrowIcon. |
int |
getOrientation()
Get the direction the tip of the arrow points when it is drawn. |
Dimension |
getPreferredSize()
Get the preferredSize of the ArrowIcon. |
void |
paint(Component comp,
Graphics g,
int x,
int y,
int width,
int height)
Paint the arrow in the specified bounds. |
void |
setMinimumSize(Dimension size)
Set the minimumSize of the ArrowIcon. |
void |
setOrientation(int orient)
Set the direction the tip of the arrow points when it is drawn. |
void |
setPreferredSize(Dimension size)
Set the preferredSize of the ArrowIcon. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrowIcon()
public ArrowIcon(int orient)
orient - the orientation of the arrow| Method Detail |
public Dimension getPreferredSize()
getPreferredSize in interface IconInterfacegetMinimumSize()public void setPreferredSize(Dimension size)
size - the new preferredSizepublic void setMinimumSize(Dimension size)
size - the new minimumSizepublic Dimension getMinimumSize()
public Insets getInsets()
getInsets in interface PainterInterfacepublic void setOrientation(int orient)
orient - the orientation of the arrow: an Orientations value of TOP, BOTTOM, LEFT, or RIGHTpublic int getOrientation()
public void paint(Component comp,
Graphics g,
int x,
int y,
int width,
int height)
paint in interface PainterInterfacecomp - the component used to determine the color used to paint the arrowg - the Graphics contextx - the x position of the bounds to paint the arrow iny - the y position of the bounds to paint the arrow inwidth - the width of the bounds to paint the arrow inheight - the height of the bounds to paint the arrow in
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||