vipratech.beans.standardbeans.resources
Class MainButtonIcon

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

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

The ButtonIcon class is a library of common icons for graphical user interface (GUI) buttons. The icons are hard-coded using pixel co-ordinates as this avoids storing .gif images in .jar files. (Some browsers seem to have problems extracting .gif images from .jar files. Also the use of pixel co-ordinates means smaller .jar files whose GUI classes can execute faster if images do not have to loaded and rendered). The icons are designed to be 16x16 pixel size.

Each icon has four possible states: enabled, disabled, up (for mouse over) and down (for mouse pressed). Currently supported icons types are: start, stop, pause, reset, save, edit, info and wizard.

Version:
1.04, July 2002
Author:
Warwick Bailey  , Hendrik Dathe   warwick-bailey@bigfoot.com 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_EDIT
          A white icon that repsents an option dialog.
static int ICON_INFO
          A blue standard symbol for information with a white "i" symbol.
static int ICON_PAUSE
          A standard black symbol for pause.
static int ICON_PROTOKOLL
          A symbol for printing a protocol.
static int ICON_RESET
          A black, left pointing curly arrow.
static int ICON_SAVE
          A white closed folder icon.
static int ICON_SEND
          A symbol(letter) for sending a e-mail
static int ICON_START
          A black, right pointing curly arrow.
static int ICON_STOP
          A red stop sign with a white cross.
static int ICON_WIZARD
          A symbol for the stepwise wizard dialog.
static int UP
          The icon is drawn using highlighed colors, usually as a result of mouse over event.
 
Constructor Summary
MainButtonIcon(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_START

public static final int ICON_START
A black, right pointing curly arrow.

ICON_STOP

public static final int ICON_STOP
A red stop sign with a white cross.

ICON_PAUSE

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

ICON_RESET

public static final int ICON_RESET
A black, left pointing curly arrow.

ICON_SAVE

public static final int ICON_SAVE
A white closed folder icon.

ICON_EDIT

public static final int ICON_EDIT
A white icon that repsents an option dialog.

ICON_INFO

public static final int ICON_INFO
A blue standard symbol for information with a white "i" symbol.

ICON_WIZARD

public static final int ICON_WIZARD
A symbol for the stepwise wizard dialog.

ICON_PROTOKOLL

public static final int ICON_PROTOKOLL
A symbol for printing a protocol.

ICON_SEND

public static final int ICON_SEND
A symbol(letter) for sending a e-mail

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

MainButtonIcon

public MainButtonIcon(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