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.


Variable Index

 o barColor
 o captionColor
 o limitColor
 o lowerLimit
 o oldBarColor
 o upperLimit
 o valueBackgroundColor
 o valueColor

Constructor Index

 o BarMeter()
 o BarMeter(double, double, double, double)
Constructor for Thermometer class.

Method Index

 o drawMeter(Graphics)
Draw the Thermometer with mercury
 o getBarColor()
 o getCaptionColor()
 o getLowerLimit()
 o getMinimumSize()
 o getPreferredSize()
 o getUpperLimit()
 o getValueBackgroundColor()
 o getValueColor()
 o setBarColor(Color)
sets the mercury Bar indicator color
 o setCaptionColor(Color)
sets the mercury Bar caption color
 o setLowerLimit(double)
sets lowerLimit
 o setUpperLimit(double)
sets upperLimit
 o setValue(double)
set the value that meter should indicate; with limit detection.
 o setValueBackgroundColor(Color)
sets the mercury Bar value indicator background color
 o setValueColor(Color)
sets the mercury Bar value indicator color

Variables

 o valueColor
 protected Color valueColor
 o valueBackgroundColor
 protected Color valueBackgroundColor
 o barColor
 protected Color barColor
 o captionColor
 protected Color captionColor
 o upperLimit
 protected double upperLimit
 o lowerLimit
 protected double lowerLimit
 o limitColor
 protected Color limitColor
 o oldBarColor
 protected Color oldBarColor

Constructors

 o BarMeter
 public BarMeter()
 o BarMeter
 public BarMeter(double lo,
                 double hi,
                 double grad,
                 double val)
Constructor for Thermometer class.

Methods

 o drawMeter
 protected void drawMeter(Graphics g)
Draw the Thermometer with mercury

Overrides:
drawMeter in class Meter
 o setValue
 public void setValue(double v)
set the value that meter should indicate; with limit detection.

Overrides:
setValue in class Meter
 o setBarColor
 public void setBarColor(Color theColor)
sets the mercury Bar indicator color

 o getBarColor
 public Color getBarColor()
 o setCaptionColor
 public void setCaptionColor(Color theColor)
sets the mercury Bar caption color

 o getCaptionColor
 public Color getCaptionColor()
 o setValueColor
 public void setValueColor(Color theColor)
sets the mercury Bar value indicator color

 o getValueColor
 public Color getValueColor()
 o setValueBackgroundColor
 public void setValueBackgroundColor(Color theColor)
sets the mercury Bar value indicator background color

 o getValueBackgroundColor
 public Color getValueBackgroundColor()
 o setUpperLimit
 public void setUpperLimit(double u)
sets upperLimit

 o getUpperLimit
 public double getUpperLimit()
 o setLowerLimit
 public void setLowerLimit(double l)
sets lowerLimit

 o getLowerLimit
 public double getLowerLimit()
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Meter
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Meter

All Packages  Class Hierarchy  This Package  Previous  Next  Index