|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.visuals.ArrowIcon
public class 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 | |
|---|---|
java.awt.Insets |
getInsets()
Get the insets of the ArrowIcon. |
java.awt.Dimension |
getMinimumSize()
Get the minimumSize of the ArrowIcon. |
int |
getOrientation()
Get the direction the tip of the arrow points when it is drawn. |
java.awt.Dimension |
getPreferredSize()
Get the preferredSize of the ArrowIcon. |
void |
paint(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paint the arrow in the specified bounds. |
void |
setMinimumSize(java.awt.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(java.awt.Dimension size)
Set the preferredSize of the ArrowIcon. |
| Constructor Detail |
|---|
public ArrowIcon()
public ArrowIcon(int orient)
orient - the orientation of the arrow| Method Detail |
|---|
public java.awt.Dimension getPreferredSize()
getPreferredSize in interface com.sas.visuals.IconInterfacegetMinimumSize()public void setPreferredSize(java.awt.Dimension size)
size - the new preferredSizepublic void setMinimumSize(java.awt.Dimension size)
size - the new minimumSizepublic java.awt.Dimension getMinimumSize()
public java.awt.Insets getInsets()
getInsets in interface com.sas.visuals.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(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paint in interface com.sas.visuals.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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||