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
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.
private static final String copyright
Image uImage
Image dImage
int w
int h
boolean bIsDown
boolean bFirstTime
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. |
public boolean mouseDown(Event e,
int x,
int y)
- Overrides:
- mouseDown in class Component
public boolean mouseUp(Event e,
int x,
int y)
- Overrides:
- mouseUp in class Component
public boolean mouseExit(Event e,
int x,
int y)
- Overrides:
- mouseExit in class Component
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
public Dimension minimumSize()
- Overrides:
- minimumSize in class Component
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
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