org.jfree.ui
public class BevelArrowIcon extends Object implements Icon
This class (and also SortButtonRenderer) is based on original code by Nobuo Tamemasa (version 1.0, 26-Feb-1999) posted on www.codeguru.com.
Field Summary | |
---|---|
static int | DOWN Constant indicating that the arrow is pointing down. |
static int | UP Constant indicating that the arrow is pointing up. |
Constructor Summary | |
---|---|
BevelArrowIcon(int direction, boolean isRaisedView, boolean isPressedView)
Standard constructor - builds an icon with the specified attributes.
| |
BevelArrowIcon(Color edge1, Color edge2, Color fill, int size, int direction)
Standard constructor - builds an icon with the specified attributes.
|
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)
Paints the icon at the specified position. |
Parameters: direction . isRaisedView . isPressedView .
Parameters: edge1 the color of edge1. edge2 the color of edge2. fill the fill color. size the size of the arrow icon. direction the direction that the arrow points.
Returns: the icon height.
Returns: the icon width.
Parameters: c . g . x . y .