com.l2fprod.gui.icon
Class ArrowIcon

java.lang.Object
  extended by com.l2fprod.gui.icon.ArrowIcon
All Implemented Interfaces:
javax.swing.Icon, javax.swing.SwingConstants

public class ArrowIcon
extends java.lang.Object
implements javax.swing.Icon, javax.swing.SwingConstants


Field Summary
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
ArrowIcon(int direction)
           
ArrowIcon(int size, int direction)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
static void paintArrow(java.awt.Graphics g, int size, int x, int y, int width, int height, int direction, boolean isEnabled)
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowIcon

public ArrowIcon(int direction)

ArrowIcon

public ArrowIcon(int size,
                 int direction)
Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

paintArrow

public static void paintArrow(java.awt.Graphics g,
                              int size,
                              int x,
                              int y,
                              int width,
                              int height,
                              int direction,
                              boolean isEnabled)