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.
-
BarIndicator()
- Create a BarIndicator with an initial value of 0 and a range of 0 to 100.
-
BarIndicator(int, int, int)
- Create a BarIndicator specifying the initial value, minimum and maximum values.
-
BarIndicator(int, int, int, boolean, Color)
- Create a BarIndicator specifying the orientation and the color to draw
the bar in.
-
BarIndicator(int, int, int, boolean, ColorGradient)
- Create a BarIndicator specifying the orientation
and the color gradient to fill the bar with.
-
BarIndicator(int, int, int, boolean, Image)
- Create a BarIndicator specifying the orientation and the image to tile the bar with.
-
copyright()
-
-
getFillColor()
- Return the Color use to fill the bar, or null if the bar is not being
filled by a Color.
-
getFillColorGradient()
- Return the ColorGradient use to fill the bar, or null if the bar is not being
filled by a ColorGradient.
-
getFillImage()
- Return the Image use to fill the bar, or null if the bar is not being
filled by a Image.
-
getMinimumSize()
-
-
getUpdateBounds(int, int, int, int, int, int)
- Method returns the clipping bounds to be used
when redrawing the gauge incrementally.
-
paintComponent(Graphics, Dimension, int, int, int)
- Paint the gauge.
-
processComponentEvent(ComponentEvent)
-
-
setBackground(Color)
-
-
setFill(Color)
- Specify that the bar will be filled with the given Color.
-
setFill(ColorGradient)
- Specify that the bar will be filled with the given ColorGradient.
-
setFill(Image)
- Specify that the bar will be filled with the given image.
-
setFillColor(Color)
- Specify that the bar will be filled with the given Color.
-
setFillColorGradient(ColorGradient)
- Specify that the bar will be filled with the given ColorGradient.
-
setFillImage(Image)
- Specify that the bar will be filled with the given image.
-
setOrientation(int)
- Set the orientation for the gauge.
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.
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.
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.
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.
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.
copyright
public static String copyright()
setFill
public void setFill(Color fillColor)
- Specify that the bar will be filled with the given Color.
Null is ignored.
setFill
public void setFill(ColorGradient colorGradient)
- Specify that the bar will be filled with the given ColorGradient.
Null is ignored.
setFill
public void setFill(Image image)
- Specify that the bar will be filled with the given image.
Null is ignored.
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
setFillColorGradient
public void setFillColorGradient(ColorGradient barCG)
- Specify that the bar will be filled with the given ColorGradient.
Null is ignored.
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
setFillColor
public void setFillColor(Color barColor)
- Specify that the bar will be filled with the given Color.
Null is ignored.
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
setFillImage
public void setFillImage(Image image)
- Specify that the bar will be filled with the given image.
Null is ignored.
setBackground
public void setBackground(Color color)
- Overrides:
- setBackground in class Component
setOrientation
public void setOrientation(int orientation)
- Set the orientation for the gauge.
- Overrides:
- setOrientation in class BaseGauge
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class JComponent
processComponentEvent
protected void processComponentEvent(ComponentEvent e)
- Overrides:
- processComponentEvent in class BaseGauge
paintComponent
public synchronized void paintComponent(Graphics g,
Dimension s,
int value,
int minimum,
int maximum)
- Paint the gauge.
- Overrides:
- paintComponent in class BaseGauge
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