iicm.vrml.vrwave
Class PictureButton

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--iicm.widgets.ImageButton
                    |
                    +--iicm.vrml.vrwave.PictureButton

public class PictureButton
extends ImageButton

A picture button for the navigation bar. Copyright (c) 1996-1998 IICM

See Also:
Serialized Form

Field Summary
protected  java.awt.Image active_icon_
           
protected  java.awt.Image deactive_icon_
           
protected  java.awt.Image disabled_icon_
           
protected  boolean enabled_
           
protected  boolean focused_
           
protected  java.awt.Image focused_img_
           
protected  java.lang.String helpText
           
protected  int icon_pos_x_
           
protected  int icon_pos_y_
           
 
Fields inherited from class iicm.widgets.ImageButton
group_, height_, img_, label_, state_, width_
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
PictureButton(java.lang.String label, java.awt.Image img, java.awt.Image f_img, java.awt.Image ico, int width, int height, int ico_x, int ico_y, boolean state, boolean enabled, ImageButtonGroup group)
          Enhanced standard constuctor.
PictureButton(java.lang.String label, java.awt.Image img, java.awt.Image f_img, java.awt.Image ico, int width, int height, int ico_x, int ico_y, boolean state, ImageButtonGroup group)
          Standard constuctor.
 
Method Summary
 boolean getEnabled()
           
 java.lang.String getHelpText()
           
 void paint(java.awt.Graphics g)
          Paint the image button, depending on focus and state.
 void setFocused(boolean flag)
          Sets the button focused, and repaints it.
 void setHelpText(java.lang.String txt)
          Sets a help Text for this button.
 void setVisible(boolean flag)
          Enables/disables the button.
 
Methods inherited from class iicm.widgets.ImageButton
getGroup, getState, minimumSize, mouseDown, preferredSize, setState, subimage, update, waitForImage
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

focused_img_

protected java.awt.Image focused_img_

active_icon_

protected java.awt.Image active_icon_

deactive_icon_

protected java.awt.Image deactive_icon_

disabled_icon_

protected java.awt.Image disabled_icon_

icon_pos_x_

protected int icon_pos_x_

icon_pos_y_

protected int icon_pos_y_

focused_

protected boolean focused_

enabled_

protected boolean enabled_

helpText

protected java.lang.String helpText
Constructor Detail

PictureButton

public PictureButton(java.lang.String label,
                     java.awt.Image img,
                     java.awt.Image f_img,
                     java.awt.Image ico,
                     int width,
                     int height,
                     int ico_x,
                     int ico_y,
                     boolean state,
                     ImageButtonGroup group)
Standard constuctor.
Parameters:
label - The name of the button.
img - The image for the button.
fimg - The image for the button, when it is focused.
ico - The image whitch contains the icon for the button.
h_ico - The image whitch contains the highlighted icon for the button.
width - The width of the button.
height - The height of the button.
ico_x - The x position of the icon.
ico_y - The y position of the icon.
state - true - if the button is pushed; flase otherwise.
group - The group for this button if it's a radiobutton; null otherwise.

PictureButton

public PictureButton(java.lang.String label,
                     java.awt.Image img,
                     java.awt.Image f_img,
                     java.awt.Image ico,
                     int width,
                     int height,
                     int ico_x,
                     int ico_y,
                     boolean state,
                     boolean enabled,
                     ImageButtonGroup group)
Enhanced standard constuctor. The button can be dis/enabled at startup here.
Parameters:
label - The name of the button.
img - The image for the button.
fimg - The image for the button, when it is focused.
ico - The image whitch contains the icon for the button.
h_ico - The image whitch contains the highlighted icon for the button.
width - The width of the button.
height - The height of the button.
ico_x - The x position of the icon.
ico_y - The y position of the icon.
state - true - if the button is pushed; flase otherwise.
enabled - true - if the button should be enabled; flase otherwise.
group - The group for this button if it's a radiobutton; null otherwise.
Method Detail

setFocused

public void setFocused(boolean flag)
Sets the button focused, and repaints it.

setVisible

public void setVisible(boolean flag)
Enables/disables the button.
Overrides:
setVisible in class java.awt.Component

getEnabled

public boolean getEnabled()
Returns:
true - if the button is enabled, false otherwise.

setHelpText

public void setHelpText(java.lang.String txt)
Sets a help Text for this button.

getHelpText

public java.lang.String getHelpText()
Returns:
The help text for this button.

paint

public void paint(java.awt.Graphics g)
Paint the image button, depending on focus and state.
Overrides:
paint in class ImageButton