org.springframework.richclient.image
Class ArrowIcon
java.lang.Object
org.springframework.richclient.image.ArrowIcon
- All Implemented Interfaces:
- Icon
public class ArrowIcon
- extends Object
- implements Icon
A directional arrow icon; the direction can either be UP or DOWN.
- Author:
- Keith Donald
- See Also:
ArrowIcon.Direction
Nested Class Summary |
static class |
ArrowIcon.Direction
Type-safe enum for the ArrowIcon's directional capability. |
ArrowIcon
public ArrowIcon(ArrowIcon.Direction direction)
- Creates a ArrowIcon in the specified direction with the default size and
color.
- Parameters:
direction
- The icon direction.
ArrowIcon
public ArrowIcon(ArrowIcon.Direction direction,
int size,
Color color)
- Creates a ArrowIcon pointing in the specified direction with the
specified size and color.
- Parameters:
direction
- the direction the arrow should point.size
- the size of the arrow in pixels (4 is a good one)color
- the color of the arrow (consider using UIDefaults for current
L&F)
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface Icon
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.