vipratech.beans.standardbeans.resources
Class ControlButtonIcon

java.lang.Object
  |
  +--vipratech.beans.standardbeans.resources.ControlButtonIcon

public class ControlButtonIcon
extends java.lang.Object
implements InterfaceProperties, java.io.Serializable

The ControlButtonIcon class is a library of common icons for graphical user interface (GUI) buttons. The icons are hard-coded using pixel co-ordinates. Each icon has four possible states: enabled, disabled, up (for mouse over) and down (for mouse pressed). Currently supported icons types are: play, pause, stop, forward, fastforward, back, fastbackward.

Version:
1.00, March 2002
Author:
Hendrik Dathe   dathe@chemie.uni-leipzig.de
See Also:
MainButton, Serialized Form

Field Summary
static int DISABLED
          The icon is drawn using the GUI control shadow color.
static int DOWN
          The icon is drawn using highlighed colors, but offset 1 pixel to the right.
static int ENABLED
          The icon is drawn in standard colors.
static int ICON_BACKWARD
          A black, double left arrow.
static int ICON_FASTBACKWARD
          A black, rigth arrow with a rectangle.
static int ICON_FASTFORWARD
          A black, left arrow with a rectangle.
static int ICON_FORWARD
          A black, double rigth arrow.
static int ICON_INFO
          A info button icon.
static int ICON_PAUSE
          A standard black symbol for pause.
static int ICON_PLAY
          A black, right arrow.
static int ICON_STOP
          A quater
static int UP
          The icon is drawn using highlighed colors, usually as a result of mouse over event.
 
Constructor Summary
ControlButtonIcon(int x, int y, int icon)
          Constructor takes three int arguments: x,y, and icon type.
 
Method Summary
 void setIconDisplay(java.awt.Graphics g, int iconDisplay)
          Sets the display of the icon as enabled, disabled, up or down.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_PLAY

public static final int ICON_PLAY
A black, right arrow.

ICON_STOP

public static final int ICON_STOP
A quater

ICON_PAUSE

public static final int ICON_PAUSE
A standard black symbol for pause.

ICON_FORWARD

public static final int ICON_FORWARD
A black, double rigth arrow.

ICON_BACKWARD

public static final int ICON_BACKWARD
A black, double left arrow.

ICON_FASTFORWARD

public static final int ICON_FASTFORWARD
A black, left arrow with a rectangle.

ICON_FASTBACKWARD

public static final int ICON_FASTBACKWARD
A black, rigth arrow with a rectangle.

ICON_INFO

public static final int ICON_INFO
A info button icon.

ENABLED

public static final int ENABLED
The icon is drawn in standard colors.

DISABLED

public static final int DISABLED
The icon is drawn using the GUI control shadow color.

UP

public static final int UP
The icon is drawn using highlighed colors, usually as a result of mouse over event.

DOWN

public static final int DOWN
The icon is drawn using highlighed colors, but offset 1 pixel to the right. This gives the impression of a 3D recessed icon. Usually draw and the result of a mouse pressed event.
Constructor Detail

ControlButtonIcon

public ControlButtonIcon(int x,
                         int y,
                         int icon)
Constructor takes three int arguments: x,y, and icon type. The first two are the x and y co-ordinates of the location on the button where the top left of the icon image should be drawn. The third argument is an int constant representing the one of the different icon types available.
Method Detail

setIconDisplay

public final void setIconDisplay(java.awt.Graphics g,
                                 int iconDisplay)
Sets the display of the icon as enabled, disabled, up or down.

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de