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.

Variable Index

 o down
 o image
 o label

Constructor Index

 o XPixButton(String, Image)

Method Index

 o getLabel()
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseUp(Event, int, int)
 o paint(Graphics)
 o pop()
 o setDown(boolean)

Variables

 o image
  protected Image image
 o down
  protected boolean down
 o label
  protected String label

Constructors

 o XPixButton
  public XPixButton(String label,
                    Image image)

Methods

 o getLabel
  public String getLabel()
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Canvas
 o setDown
  public void setDown(boolean down)
 o pop
  public void pop()
 o mouseDown
  public boolean mouseDown(Event ev,
                           int x,
                           int y)
Overrides:
mouseDown in class Component
 o mouseDrag
  public boolean mouseDrag(Event ev,
                           int x,
                           int y)
Overrides:
mouseDrag in class Component
 o mouseUp
  public boolean mouseUp(Event ev,
                         int x,
                         int y)
Overrides:
mouseUp in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index