com.pallas.swing.spinner
Class ButtonArrowIcon

java.lang.Object
  |
  +--com.pallas.swing.spinner.ButtonArrowIcon
All Implemented Interfaces:
javax.swing.Icon

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

Title: $FileName: ButtonArrowIcon.java$

Version:
$VerNum: 2$
Author:
$AuthorName: Rob MacGrogan$

$Description: Left/Right arrow icon.$
$KeyWordsOff: $


Field Summary
protected  int direction
           
protected  int height
           
static int LEFT
           
static int RIGHT
           
protected  int width
           
 
Constructor Summary
ButtonArrowIcon(int direction)
           
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
static void main(java.lang.String[] args)
           
 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

LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

direction

protected int direction

width

protected int width

height

protected int height
Constructor Detail

ButtonArrowIcon

public ButtonArrowIcon(int direction)
Method Detail

getIconWidth

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

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight 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

main

public static void main(java.lang.String[] args)


Copyright 2003 Pallas Technology.