| java.lang.Object org.glasser.swing.BevelArrowIcon
BevelArrowIcon | public class BevelArrowIcon implements Icon,java.io.Serializable(Code) | | This is a very limited, basic Icon implementation that can be used as a beveled
arrow pointing up or down on a JButton.
|
Field Summary | |
final public static int | DOWN | final public static int | UP | protected int | direction | protected int | height | final protected static double | heightMultiplier Given the base of an equilateral triangle, this multiplier will give you its height. | protected int | margin | protected int | middle | protected double | size | protected int | width |
Constructor Summary | |
public | BevelArrowIcon(int direction) Constructs a BevelArrowIcon with a base of 10 pixels, and the given direction. | public | BevelArrowIcon(double size, int direction) Constructs a BevelArrowIcon with a base of "size" pixels, and the given direction. |
DOWN | final public static int DOWN(Code) | | |
UP | final public static int UP(Code) | | |
direction | protected int direction(Code) | | |
height | protected int height(Code) | | |
heightMultiplier | final protected static double heightMultiplier(Code) | | Given the base of an equilateral triangle, this multiplier will give you its height.
|
margin | protected int margin(Code) | | |
middle | protected int middle(Code) | | |
size | protected double size(Code) | | |
width | protected int width(Code) | | |
BevelArrowIcon | public BevelArrowIcon(int direction)(Code) | | Constructs a BevelArrowIcon with a base of 10 pixels, and the given direction.
Parameters: direction - indicates what direction the arrow should point, either BevelArrowIcon.UPor BevelArrowIcon.DOWN. |
BevelArrowIcon | public BevelArrowIcon(double size, int direction)(Code) | | Constructs a BevelArrowIcon with a base of "size" pixels, and the given direction.
Parameters: direction - indicates what direction the arrow should point, either BevelArrowIcon.UPor BevelArrowIcon.DOWN. |
getIconHeight | public int getIconHeight()(Code) | | Returns the icon's height.
an int specifying the fixed height of the icon. |
getIconWidth | public int getIconWidth()(Code) | | Returns the icon's width.
an int specifying the fixed width of the icon. |
main | public static void main(String[] args) throws Exception(Code) | | Launches a small demonstration program.
|
paintIcon | public void paintIcon(Component c, Graphics g, int x, int y)(Code) | | Draw the icon at the specified location. Icon implementations
may use the Component argument to get properties useful for
painting, e.g. the foreground or background color.
|
|
|