jview
Class ReloadIcon

java.lang.Object
  extended by jview.ReloadIcon
All Implemented Interfaces:
Icon

public class ReloadIcon
extends Object
implements Icon

An icon that looks like the play icon.


Nested Class Summary
static class ReloadIcon.Show
          Test class for display.
 
Field Summary
static String ACTIONCOMMAND
          The action-event command for continuous-exposure button.
static int DEFSIZE
          The default icon size, alqways quadratically.
private static int F
           
private  int size
          This icon is customizable in size, but fix sized once constructed.
private static int W
           
 
Constructor Summary
ReloadIcon()
          Constructs a new brightness icon with the default size.
ReloadIcon(int quadratic)
          Constructs a new brightness icon with the given, quadratic size.
 
Method Summary
 int getIconHeight()
          The height of the icon equals the size specified on construct.
 int getIconWidth()
          The width of the icon equals the size specified on construct.
 void paintIcon(Component button, Graphics g, int x, int y)
          Paints the icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIONCOMMAND

public static final String ACTIONCOMMAND
The action-event command for continuous-exposure button.

See Also:
Constant Field Values

DEFSIZE

public static final int DEFSIZE
The default icon size, alqways quadratically.

See Also:
Constant Field Values

F

private static final int F
See Also:
Constant Field Values

W

private static final int W
See Also:
Constant Field Values

size

private int size
This icon is customizable in size, but fix sized once constructed.

Constructor Detail

ReloadIcon

public ReloadIcon()
Constructs a new brightness icon with the default size.


ReloadIcon

public ReloadIcon(int quadratic)
Constructs a new brightness icon with the given, quadratic size.

Method Detail

getIconWidth

public int getIconWidth()
The width of the icon equals the size specified on construct.

Specified by:
getIconWidth in interface Icon

getIconHeight

public int getIconHeight()
The height of the icon equals the size specified on construct.

Specified by:
getIconHeight in interface Icon

paintIcon

public void paintIcon(Component button,
                      Graphics g,
                      int x,
                      int y)
Paints the icon.

Specified by:
paintIcon in interface Icon