All Packages Class Hierarchy This Package Previous Next Index
Class weblab.gauge.BarMeter
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----weblab.gauge.Meter
|
+----weblab.gauge.BarMeter
- public class BarMeter
- extends Meter
Basic BarMeter widget based on Meter class.
Derived from sample codes by Liam Relihan.
-
barColor
-
-
captionColor
-
-
limitColor
-
-
lowerLimit
-
-
oldBarColor
-
-
upperLimit
-
-
valueBackgroundColor
-
-
valueColor
-
-
BarMeter()
-
-
BarMeter(double, double, double, double)
- Constructor for Thermometer class.
-
drawMeter(Graphics)
- Draw the Thermometer with mercury
-
getBarColor()
-
-
getCaptionColor()
-
-
getLowerLimit()
-
-
getMinimumSize()
-
-
getPreferredSize()
-
-
getUpperLimit()
-
-
getValueBackgroundColor()
-
-
getValueColor()
-
-
setBarColor(Color)
- sets the mercury Bar indicator color
-
setCaptionColor(Color)
- sets the mercury Bar caption color
-
setLowerLimit(double)
- sets lowerLimit
-
setUpperLimit(double)
- sets upperLimit
-
setValue(double)
-
set the value that meter should indicate; with limit detection.
-
setValueBackgroundColor(Color)
- sets the mercury Bar value indicator background color
-
setValueColor(Color)
- sets the mercury Bar value indicator color
valueColor
protected Color valueColor
valueBackgroundColor
protected Color valueBackgroundColor
barColor
protected Color barColor
captionColor
protected Color captionColor
upperLimit
protected double upperLimit
lowerLimit
protected double lowerLimit
limitColor
protected Color limitColor
oldBarColor
protected Color oldBarColor
BarMeter
public BarMeter()
BarMeter
public BarMeter(double lo,
double hi,
double grad,
double val)
- Constructor for Thermometer class.
drawMeter
protected void drawMeter(Graphics g)
- Draw the Thermometer with mercury
- Overrides:
- drawMeter in class Meter
setValue
public void setValue(double v)
- set the value that meter should indicate; with limit detection.
- Overrides:
- setValue in class Meter
setBarColor
public void setBarColor(Color theColor)
- sets the mercury Bar indicator color
getBarColor
public Color getBarColor()
setCaptionColor
public void setCaptionColor(Color theColor)
- sets the mercury Bar caption color
getCaptionColor
public Color getCaptionColor()
setValueColor
public void setValueColor(Color theColor)
- sets the mercury Bar value indicator color
getValueColor
public Color getValueColor()
setValueBackgroundColor
public void setValueBackgroundColor(Color theColor)
- sets the mercury Bar value indicator background color
getValueBackgroundColor
public Color getValueBackgroundColor()
setUpperLimit
public void setUpperLimit(double u)
- sets upperLimit
getUpperLimit
public double getUpperLimit()
setLowerLimit
public void setLowerLimit(double l)
- sets lowerLimit
getLowerLimit
public double getLowerLimit()
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Meter
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Meter
All Packages Class Hierarchy This Package Previous Next Index