com.levigo.util.swing
Class ArrowIcon

java.lang.Object
  extended by 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.


Constructor Summary
ArrowIcon(int size, int direction)
           
ArrowIcon(int size, int direction, Color enabled, Color disabled)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x0, int y0)
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowIcon

public ArrowIcon(int size,
                 int direction)

ArrowIcon

public ArrowIcon(int size,
                 int direction,
                 Color enabled,
                 Color disabled)
Parameters:
size - the icon size
direction - the direction in which the arrow points. Possible values are SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.EAST, SwingConstants.WEST.
Method Detail

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.