gov.nih.nlm.swing
Class BevelArrowIcon

java.lang.Object
  extended bygov.nih.nlm.swing.BevelArrowIcon
All Implemented Interfaces:
Icon

public class BevelArrowIcon
extends Object
implements Icon

Icon that depicts an arrow used on a column header to indicate if sorting is ascending or descending.


Field Summary
static int DOWN
           
static int UP
           
 
Constructor Summary
BevelArrowIcon(int direction, boolean is_raised_view, boolean is_pressed_view)
          Instantiates a BevelArrowIcon from the specified parameters.
 
Method Summary
 int getIconHeight()
          Returns the height of the icon.
 int getIconWidth()
          Returns the width of the icon.
 void paintIcon(Component c, Graphics g, int x, int y)
          Redraws the Icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UP

public static final int UP
See Also:
Constant Field Values

DOWN

public static final int DOWN
See Also:
Constant Field Values
Constructor Detail

BevelArrowIcon

public BevelArrowIcon(int direction,
                      boolean is_raised_view,
                      boolean is_pressed_view)
Instantiates a BevelArrowIcon from the specified parameters.

Parameters:
direction - up or down
is_raised_view - does appear as raised
is_pressed_view - does appear as pressed
Method Detail

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Redraws the Icon.

Specified by:
paintIcon in interface Icon
Parameters:
c - the Component
g - the Graphics
x - the x coordinate
y - the y coordinate

getIconWidth

public int getIconWidth()
Returns the width of the icon.

Specified by:
getIconWidth in interface Icon
Returns:
the width of the icon

getIconHeight

public int getIconHeight()
Returns the height of the icon.

Specified by:
getIconHeight in interface Icon
Returns:
the height of the icon


Copyright ©2005