uk.ac.ic.doc.automed.gui
Class ArrowIcon

java.lang.Object
  |
  +--uk.ac.ic.doc.automed.gui.ArrowIcon
All Implemented Interfaces:
javax.swing.Icon, javax.swing.SwingConstants

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

An icon that's a picture of an arrow. Class defined in the java tutorial: http://www.java.sun.com/tutorial


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)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 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)
Method Detail

getIconHeight

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

getIconWidth

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

paintIcon

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