com.partnersoft.gui
Class ArrowIcon

java.lang.Object
  extended by com.partnersoft.gui.ArrowIcon
All Implemented Interfaces:
javax.swing.Icon

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

An icon what looks like an arrow or something.

Author:
Paul Reavis Copyright 1998-2002 Partner Software, Inc.

Field Summary
static RationalPolygon EAST
          An east arrow.
static RationalPolygon NORTH
          A north arrow.
static RationalPolygon NORTHEAST
          A northeast arrow.
static RationalPolygon NORTHWEST
          A northwest arrow.
static RationalPolygon SOUTH
          A south arrow.
static RationalPolygon SOUTHEAST
          A southeast arrow.
static RationalPolygon SOUTHWEST
          A southwest arrow.
static RationalPolygon WEST
          A west arrow.
 
Constructor Summary
ArrowIcon(RationalPolygon anArrow)
           
ArrowIcon(java.lang.String arrowName)
           
 
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
 

Field Detail

NORTH

public static final RationalPolygon NORTH
A north arrow.


SOUTH

public static final RationalPolygon SOUTH
A south arrow.


EAST

public static final RationalPolygon EAST
An east arrow.


WEST

public static final RationalPolygon WEST
A west arrow.


NORTHEAST

public static final RationalPolygon NORTHEAST
A northeast arrow.


NORTHWEST

public static final RationalPolygon NORTHWEST
A northwest arrow.


SOUTHEAST

public static final RationalPolygon SOUTHEAST
A southeast arrow.


SOUTHWEST

public static final RationalPolygon SOUTHWEST
A southwest arrow.

Constructor Detail

ArrowIcon

public ArrowIcon(RationalPolygon anArrow)

ArrowIcon

public ArrowIcon(java.lang.String arrowName)
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