All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.eou.toolkit.gauge.ImageIndicator
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----com.ibm.eou.toolkit.gauge.BaseGauge
|
+----com.ibm.eou.toolkit.gauge.ImageIndicator
- public class ImageIndicator
- extends BaseGauge
This gauge displays a single image selected from a set of images
according to the current gauge value. It is most effective if a
series of images are used that reflect a contiguous increase in value.
-
ImageIndicator(Image[])
- Create an ImageIndicator, specifying only an array of images.
-
ImageIndicator(int, int, int, Image[])
- Create an ImageIndicator, specifying the initial value, the minimum value,
the maximum value and an array of images.
-
ImageIndicator(int, int, int, Image[], int)
- Create an ImageIndicator specifying the set of images to use, and the minimum
time interval in milliseconds between displayed images.
-
copyright()
-
-
getImages()
- Return the current array of images.
-
getInterval()
- Return the millisecond interval between the alterations of the gauge.
-
getMinimumSize()
-
-
paintComponent(Graphics, Dimension, int, int, int)
- Paint the gauge.
-
setImages(Image[])
- Specify an array of images array.
-
setInterval(long)
- Specify the millisecond interval between the alterations of the gauge.
ImageIndicator
public ImageIndicator(int initialValue,
int minimum,
int maximum,
Image images[],
int interval)
- Create an ImageIndicator specifying the set of images to use, and the minimum
time interval in milliseconds between displayed images. Use the
constant NO_WAIT for immediate update.
ImageIndicator
public ImageIndicator(int initialValue,
int minimum,
int maximum,
Image images[])
- Create an ImageIndicator, specifying the initial value, the minimum value,
the maximum value and an array of images. The remaining property defaults to a
500 millisecond interval between image updating.
ImageIndicator
public ImageIndicator(Image images[])
- Create an ImageIndicator, specifying only an array of images.
It has an initial value of 0 and a range of 0 to 100.
The remaining property defaults to a
500 millisecond interval between image updating.
copyright
public static String copyright()
getImages
public Image[] getImages()
- Return the current array of images.
setImages
public void setImages(Image images[])
- Specify an array of images array. Null is ignored.
getInterval
public long getInterval()
- Return the millisecond interval between the alterations of the gauge.
setInterval
public void setInterval(long interval)
- Specify the millisecond interval between the alterations of the gauge.
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class JComponent
paintComponent
public void paintComponent(Graphics g,
Dimension s,
int value,
int minimum,
int maximum)
- Paint the gauge.
- Overrides:
- paintComponent in class BaseGauge
All Packages Class Hierarchy This Package Previous Next Index