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.


Constructor Index

 o ImageIndicator(Image[])
Create an ImageIndicator, specifying only an array of images.
 o ImageIndicator(int, int, int, Image[])
Create an ImageIndicator, specifying the initial value, the minimum value, the maximum value and an array of images.
 o 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.

Method Index

 o copyright()
 o getImages()
Return the current array of images.
 o getInterval()
Return the millisecond interval between the alterations of the gauge.
 o getMinimumSize()
 o paintComponent(Graphics, Dimension, int, int, int)
Paint the gauge.
 o setImages(Image[])
Specify an array of images array.
 o setInterval(long)
Specify the millisecond interval between the alterations of the gauge.

Constructors

 o 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.

 o 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.

 o 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.

Methods

 o copyright
 public static String copyright()
 o getImages
 public Image[] getImages()
Return the current array of images.

 o setImages
 public void setImages(Image images[])
Specify an array of images array. Null is ignored.

 o getInterval
 public long getInterval()
Return the millisecond interval between the alterations of the gauge.

 o setInterval
 public void setInterval(long interval)
Specify the millisecond interval between the alterations of the gauge.

 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class JComponent
 o 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