com.levigo.util.swing
Class ArrowIcon
java.lang.Object
com.levigo.util.swing.ArrowIcon
- All Implemented Interfaces:
- Icon
public class ArrowIcon
- extends Object
- implements Icon
An icon painting a triangle as used by combo-box popup-buttons etc.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrowIcon
public ArrowIcon(int size,
int direction)
ArrowIcon
public ArrowIcon(int size,
int direction,
Color enabled,
Color disabled)
- Parameters:
size
- the icon sizedirection
- the direction in which the arrow points. Possible values are
SwingConstants.NORTH
, SwingConstants.SOUTH
,
SwingConstants.EAST
, SwingConstants.WEST
.
paintIcon
public void paintIcon(Component c,
Graphics g,
int x0,
int y0)
- 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
setEnabled
public void setEnabled(boolean enabled)
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.