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 down
-  
  
-   image image
-  
  
-   label label
-  
   
  -   XPixButton(String, Image) XPixButton(String, Image)
-  
   
  -   getLabel() getLabel()
-  
  
-   mouseDown(Event, int, int) mouseDown(Event, int, int)
-  
  
-   mouseDrag(Event, int, int) mouseDrag(Event, int, int)
-  
  
-   mouseUp(Event, int, int) mouseUp(Event, int, int)
-  
  
-   paint(Graphics) paint(Graphics)
-  
  
-   pop() pop()
-  
  
-   setDown(boolean) setDown(boolean)
-  
   
 image
image
  protected Image image
 down
down
  protected boolean down
 label
label
  protected String label
   
 XPixButton
XPixButton
  public XPixButton(String label,
                    Image image)
   
 getLabel
getLabel
  public String getLabel()
 paint
paint
  public void paint(Graphics g)
  
    -  Overrides:
    
-  paint in class Canvas
  
 setDown
setDown
  public void setDown(boolean down)
 pop
pop
  public void pop()
 mouseDown
mouseDown
  public boolean mouseDown(Event ev,
                           int x,
                           int y)
  
    -  Overrides:
    
-  mouseDown in class Component
  
 mouseDrag
mouseDrag
  public boolean mouseDrag(Event ev,
                           int x,
                           int y)
  
    -  Overrides:
    
-  mouseDrag in class Component
  
 mouseUp
mouseUp
  public boolean mouseUp(Event ev,
                         int x,
                         int y)
  
    -  Overrides:
    
-  mouseUp in class Component
  
All Packages  Class Hierarchy  This Package  Previous  Next  Index