Class sunsoft.jws.visual.rt.awt.ImageButton
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.awt.ImageButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----sunsoft.jws.visual.rt.awt.ImageLabel
                           |
                           +----sunsoft.jws.visual.rt.awt.ImageButton

public class ImageButton
extends ImageLabel
An image button (a 3D rect around an image.) It greys itself out when disabled and inverts the 3D rect and moves its image when depressed.

Variable Index

 o depressed

Constructor Index

 o ImageButton(Image)
 o ImageButton(Image, int, int)

Method Index

 o action()
 o getLineWidth()
 o getPadWidth()
 o getPressMovement()
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseUp(Event, int, int)
 o paint(Graphics)
Draw the image in the center of the available area.
 o setLineWidth(int)
 o setPadWidth(int)
 o setPressMovement(int)

Variables

 o depressed
  protected boolean depressed

Constructors

 o ImageButton
  public ImageButton(Image img)
 o ImageButton
  public ImageButton(Image img,
                     int w,
                     int h)

Methods

 o setPadWidth
  public void setPadWidth(int w)
Overrides:
setPadWidth in class ImageLabel
 o getPadWidth
  public int getPadWidth()
Overrides:
getPadWidth in class ImageLabel
 o setLineWidth
  public void setLineWidth(int w)
 o getLineWidth
  public int getLineWidth()
 o setPressMovement
  public void setPressMovement(int p)
 o getPressMovement
  public int getPressMovement()
 o paint
  public void paint(Graphics g)
Draw the image in the center of the available area.
Overrides:
paint in class ImageLabel
 o mouseDown
  public boolean mouseDown(Event e,
                           int x,
                           int y)
Overrides:
mouseDown in class Component
 o mouseDrag
  public boolean mouseDrag(Event e,
                           int x,
                           int y)
Overrides:
mouseDrag in class Component
 o mouseUp
  public boolean mouseUp(Event evt,
                         int x,
                         int y)
Overrides:
mouseUp in class Component
 o action
  public void action()

All Packages  Class Hierarchy  This Package  Previous  Next  Index