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.
-
depressed
-
-
ImageButton(Image)
-
-
ImageButton(Image, int, int)
-
-
action()
-
-
getLineWidth()
-
-
getPadWidth()
-
-
getPressMovement()
-
-
mouseDown(Event, int, int)
-
-
mouseDrag(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
- Draw the image in the center of the available area.
-
setLineWidth(int)
-
-
setPadWidth(int)
-
-
setPressMovement(int)
-
depressed
protected boolean depressed
ImageButton
public ImageButton(Image img)
ImageButton
public ImageButton(Image img,
int w,
int h)
setPadWidth
public void setPadWidth(int w)
- Overrides:
- setPadWidth in class ImageLabel
getPadWidth
public int getPadWidth()
- Overrides:
- getPadWidth in class ImageLabel
setLineWidth
public void setLineWidth(int w)
getLineWidth
public int getLineWidth()
setPressMovement
public void setPressMovement(int p)
getPressMovement
public int getPressMovement()
paint
public void paint(Graphics g)
- Draw the image in the center of the available area.
- Overrides:
- paint in class ImageLabel
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- Overrides:
- mouseDown in class Component
mouseDrag
public boolean mouseDrag(Event e,
int x,
int y)
- Overrides:
- mouseDrag in class Component
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- Overrides:
- mouseUp in class Component
action
public void action()
All Packages Class Hierarchy This Package Previous Next Index