All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vt.cs.widgets.Meter

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----vt.cs.widgets.Meter

public class Meter
extends Panel

Variable Index

 o caption
 o captionFont
 o highestValue
 o lowestValue
 o numbersFont
 o offScreenGraphics
 o offScreenImage
 o offScreenSize
 o panelColor
 o scaleGrad
 o value

Constructor Index

 o Meter(double, double, double, double)
Constructor for Meter class.

Method Index

 o drawMeter(Graphics)
 o getMaximum()
get the maximum value that the meter can indicate
 o getMinimum()
get the minimum value that the meter can indicate
 o getPanelColor()
gets the panel color
 o getValue()
get the value that the meter is indicating
 o minimumSize()
 o paint(Graphics)
paint the meter on the foreground
 o preferredSize()
 o setCaption(String)
sets the caption
 o setCaptionFont(Font)
sets the font of the caption
 o setNumbersFont(Font)
sets the font of the readings
 o setPanelColor(Color)
sets the panel color
 o setRange(int, int)
set the valid range of the meter
 o setValue(double)
set the value that meter should indicate
 o update(Graphics)
redefines inherited method to exclude screen clear

Variables

 o lowestValue
  protected double lowestValue
 o highestValue
  protected double highestValue
 o scaleGrad
  protected double scaleGrad
 o value
  protected double value
 o captionFont
  protected Font captionFont
 o numbersFont
  protected Font numbersFont
 o caption
  protected String caption
 o offScreenImage
  protected Image offScreenImage
 o offScreenSize
  protected Dimension offScreenSize
 o offScreenGraphics
  protected Graphics offScreenGraphics
 o panelColor
  protected Color panelColor

Constructors

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

Methods

 o setRange
  public void setRange(int theMinimum,
                       int theMaximum)
set the valid range of the meter

 o setValue
  public void setValue(double theValue)
set the value that meter should indicate

 o getMinimum
  public double getMinimum()
get the minimum value that the meter can indicate

 o getMaximum
  public double getMaximum()
get the maximum value that the meter can indicate

 o getValue
  public double getValue()
get the value that the meter is indicating

 o setPanelColor
  public void setPanelColor(Color theColor)
sets the panel color

 o getPanelColor
  public Color getPanelColor()
gets the panel color

 o setCaption
  public void setCaption(String theCaption)
sets the caption

 o setCaptionFont
  public void setCaptionFont(Font theFont)
sets the font of the caption

 o setNumbersFont
  public void setNumbersFont(Font theFont)
sets the font of the readings

 o paint
  public synchronized void paint(Graphics g)
paint the meter on the foreground

Overrides:
paint in class Component
 o update
  public void update(Graphics g)
redefines inherited method to exclude screen clear

Overrides:
update in class Component
 o drawMeter
  protected abstract void drawMeter(Graphics g)
 o minimumSize
  public abstract Dimension minimumSize()
Overrides:
minimumSize in class Container
 o preferredSize
  public abstract Dimension preferredSize()
Overrides:
preferredSize in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index