Class ryw.XPixButton
All Packages Class Hierarchy This Package Previous Next Index
Class ryw.XPixButton
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----ryw.XPixButton
- public class XPixButton
- extends Canvas
A button with a picture and a label.
I can't extend the Button object because it's too closely tied to
its peer implementation.
-
down
-
-
image
-
-
label
-
-
XPixButton(String, Image)
-
-
getLabel()
-
-
mouseDown(Event, int, int)
-
-
mouseDrag(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
-
-
pop()
-
-
setDown(boolean)
-
image
protected Image image
down
protected boolean down
label
protected String label
XPixButton
public XPixButton(String label,
Image image)
getLabel
public String getLabel()
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
setDown
public void setDown(boolean down)
pop
public void pop()
mouseDown
public boolean mouseDown(Event ev,
int x,
int y)
- Overrides:
- mouseDown in class Component
mouseDrag
public boolean mouseDrag(Event ev,
int x,
int y)
- Overrides:
- mouseDrag in class Component
mouseUp
public boolean mouseUp(Event ev,
int x,
int y)
- Overrides:
- mouseUp in class Component
All Packages Class Hierarchy This Package Previous Next Index