Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.tolstoy.imagemeister.ImageButton

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Canvas
                       |
                       +----com.tolstoy.imagemeister.ImageButton

Summary

    class  ImageButton
         extends java.awt.Canvas
         implements java.awt.image.ImageObserver
    {
              // Fields 7
         boolean bFirstTime;
         boolean bIsDown;
         private static final String copyright;
         Image dImage;
         int h;
         Image uImage;
         int w;

              // Constructors 1
         public ImageButton(String, String, int, int);

              // Methods 7
         public Dimension minimumSize();
         public boolean mouseDown(Event, int, int);
         public boolean mouseExit(Event, int, int);
         public boolean mouseUp(Event, int, int);
         public void paint(Graphics);
         public Dimension preferredSize();
         public Dimension size();
    }

An image button.

Author:
  Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.

Fields

### · copyright | Summary | Top

       private static final String copyright

### · uImage | Summary | Top

       Image uImage

### · dImage | Summary | Top

       Image dImage

### · w | Summary | Top

       int w

### · h | Summary | Top

       int h

### · bIsDown | Summary | Top

       boolean bIsDown

### · bFirstTime | Summary | Top

       boolean bFirstTime

Constructors

### · ImageButton | Summary | Top

       public ImageButton(String fileNameU,
                          String fileNameD,
                          int w,
                          int h)

> Parameter | Description
> fileNameU | path of the file containing the image to be shown when the button is up.
> fileNameD | path of the file containing the image to be shown when the button is down.

Methods

### · mouseDown | Summary | Top

       public boolean mouseDown(Event e,
                                int x,
                                int y)

> Overrides:
>   mouseDown in class Component

### · mouseUp | Summary | Top

       public boolean mouseUp(Event e,
                              int x,
                              int y)

> Overrides:
>   mouseUp in class Component

### · mouseExit | Summary | Top

       public boolean mouseExit(Event e,
                                int x,
                                int y)

> Overrides:
>   mouseExit in class Component

### · paint | Summary | Top

       public void paint(Graphics g)

> Overrides:
>   paint in class Canvas

### · minimumSize | Summary | Top

       public Dimension minimumSize()

> Overrides:
>   minimumSize in class Component

### · preferredSize | Summary | Top

       public Dimension preferredSize()

> Overrides:
>   preferredSize in class Component

### · size | Summary | Top

       public Dimension size()

> Overrides:
>   size in class Component

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7