All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eou.toolkit.gauge.BarIndicator

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

public class BarIndicator
extends BaseGauge
implements Serializable
This gauge displays a bar representing the gauge value. The bar may be drawn using a solid color, a color gradient, or a tiled image.


Constructor Index

 o BarIndicator()
Create a BarIndicator with an initial value of 0 and a range of 0 to 100.
 o BarIndicator(int, int, int)
Create a BarIndicator specifying the initial value, minimum and maximum values.
 o BarIndicator(int, int, int, boolean, Color)
Create a BarIndicator specifying the orientation and the color to draw the bar in.
 o BarIndicator(int, int, int, boolean, ColorGradient)
Create a BarIndicator specifying the orientation and the color gradient to fill the bar with.
 o BarIndicator(int, int, int, boolean, Image)
Create a BarIndicator specifying the orientation and the image to tile the bar with.

Method Index

 o copyright()
 o getFillColor()
Return the Color use to fill the bar, or null if the bar is not being filled by a Color.
 o getFillColorGradient()
Return the ColorGradient use to fill the bar, or null if the bar is not being filled by a ColorGradient.
 o getFillImage()
Return the Image use to fill the bar, or null if the bar is not being filled by a Image.
 o getMinimumSize()
 o getUpdateBounds(int, int, int, int, int, int)
Method returns the clipping bounds to be used when redrawing the gauge incrementally.
 o paintComponent(Graphics, Dimension, int, int, int)
Paint the gauge.
 o processComponentEvent(ComponentEvent)
 o setBackground(Color)
 o setFill(Color)
Specify that the bar will be filled with the given Color.
 o setFill(ColorGradient)
Specify that the bar will be filled with the given ColorGradient.
 o setFill(Image)
Specify that the bar will be filled with the given image.
 o setFillColor(Color)
Specify that the bar will be filled with the given Color.
 o setFillColorGradient(ColorGradient)
Specify that the bar will be filled with the given ColorGradient.
 o setFillImage(Image)
Specify that the bar will be filled with the given image.
 o setOrientation(int)
Set the orientation for the gauge.

Constructors

 o BarIndicator
 public BarIndicator(int initialValue,
                     int minimum,
                     int maximum,
                     boolean horizontal,
                     Color fillColor)
Create a BarIndicator specifying the orientation and the color to draw the bar in.

 o BarIndicator
 public BarIndicator(int initialValue,
                     int minimum,
                     int maximum,
                     boolean horizontal,
                     ColorGradient fillColorGradient)
Create a BarIndicator specifying the orientation and the color gradient to fill the bar with.

 o BarIndicator
 public BarIndicator(int initialValue,
                     int minimum,
                     int maximum,
                     boolean horizontal,
                     Image image)
Create a BarIndicator specifying the orientation and the image to tile the bar with.

 o BarIndicator
 public BarIndicator(int initialValue,
                     int minimum,
                     int maximum)
Create a BarIndicator specifying the initial value, minimum and maximum values. The other properties default to a bar filled with a grey ColorGradient.

 o BarIndicator
 public BarIndicator()
Create a BarIndicator with an initial value of 0 and a range of 0 to 100. The other properties default to a bar filled with a grey ColorGradient.

Methods

 o copyright
 public static String copyright()
 o setFill
 public void setFill(Color fillColor)
Specify that the bar will be filled with the given Color. Null is ignored.

 o setFill
 public void setFill(ColorGradient colorGradient)
Specify that the bar will be filled with the given ColorGradient. Null is ignored.

 o setFill
 public void setFill(Image image)
Specify that the bar will be filled with the given image. Null is ignored.

 o getFillColorGradient
 public ColorGradient getFillColorGradient()
Return the ColorGradient use to fill the bar, or null if the bar is not being filled by a ColorGradient.

See Also:
getFillColor, getFillImage
 o setFillColorGradient
 public void setFillColorGradient(ColorGradient barCG)
Specify that the bar will be filled with the given ColorGradient. Null is ignored.

 o getFillColor
 public Color getFillColor()
Return the Color use to fill the bar, or null if the bar is not being filled by a Color.

See Also:
getFillColorGradient, getFillImage
 o setFillColor
 public void setFillColor(Color barColor)
Specify that the bar will be filled with the given Color. Null is ignored.

 o getFillImage
 public Image getFillImage()
Return the Image use to fill the bar, or null if the bar is not being filled by a Image.

See Also:
getFillColorGradient, getFillColor
 o setFillImage
 public void setFillImage(Image image)
Specify that the bar will be filled with the given image. Null is ignored.

 o setBackground
 public void setBackground(Color color)
Overrides:
setBackground in class Component
 o setOrientation
 public void setOrientation(int orientation)
Set the orientation for the gauge.

Overrides:
setOrientation in class BaseGauge
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class JComponent
 o processComponentEvent
 protected void processComponentEvent(ComponentEvent e)
Overrides:
processComponentEvent in class BaseGauge
 o paintComponent
 public synchronized void paintComponent(Graphics g,
                                         Dimension s,
                                         int value,
                                         int minimum,
                                         int maximum)
Paint the gauge.

Overrides:
paintComponent in class BaseGauge
 o getUpdateBounds
 protected Rectangle getUpdateBounds(int nextDisplayValue,
                                     int nextDisplayMinimum,
                                     int nextDisplayMaximum,
                                     int currentDisplayValue,
                                     int currentDisplayMinimum,
                                     int currentDisplayMaximum)
Method returns the clipping bounds to be used when redrawing the gauge incrementally.


All Packages  Class Hierarchy  This Package  Previous  Next  Index