|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--iicm.widgets.ImageButton | +--iicm.vrml.vrwave.PictureButton
A picture button for the navigation bar. Copyright (c) 1996-1998 IICM
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 |
protected java.awt.Image focused_img_
protected java.awt.Image active_icon_
protected java.awt.Image deactive_icon_
protected java.awt.Image disabled_icon_
protected int icon_pos_x_
protected int icon_pos_y_
protected boolean focused_
protected boolean enabled_
protected java.lang.String helpText
Constructor Detail |
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)
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.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)
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 |
public void setFocused(boolean flag)
public void setVisible(boolean flag)
public boolean getEnabled()
public void setHelpText(java.lang.String txt)
public java.lang.String getHelpText()
public void paint(java.awt.Graphics g)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |