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
-
caption
-
-
captionFont
-
-
highestValue
-
-
lowestValue
-
-
numbersFont
-
-
offScreenGraphics
-
-
offScreenImage
-
-
offScreenSize
-
-
panelColor
-
-
scaleGrad
-
-
value
-
-
Meter(double, double, double, double)
- Constructor for Meter class.
-
drawMeter(Graphics)
-
-
getMaximum()
- get the maximum value that the meter can indicate
-
getMinimum()
- get the minimum value that the meter can indicate
-
getPanelColor()
- gets the panel color
-
getValue()
- get the value that the meter is indicating
-
minimumSize()
-
-
paint(Graphics)
- paint the meter on the foreground
-
preferredSize()
-
-
setCaption(String)
- sets the caption
-
setCaptionFont(Font)
- sets the font of the caption
-
setNumbersFont(Font)
- sets the font of the readings
-
setPanelColor(Color)
- sets the panel color
-
setRange(int, int)
- set the valid range of the meter
-
setValue(double)
- set the value that meter should indicate
-
update(Graphics)
- redefines inherited method to exclude screen clear
lowestValue
protected double lowestValue
highestValue
protected double highestValue
scaleGrad
protected double scaleGrad
value
protected double value
captionFont
protected Font captionFont
numbersFont
protected Font numbersFont
caption
protected String caption
offScreenImage
protected Image offScreenImage
offScreenSize
protected Dimension offScreenSize
offScreenGraphics
protected Graphics offScreenGraphics
panelColor
protected Color panelColor
Meter
public Meter(double lo,
double hi,
double grad,
double val)
- Constructor for Meter class.
setRange
public void setRange(int theMinimum,
int theMaximum)
- set the valid range of the meter
setValue
public void setValue(double theValue)
- set the value that meter should indicate
getMinimum
public double getMinimum()
- get the minimum value that the meter can indicate
getMaximum
public double getMaximum()
- get the maximum value that the meter can indicate
getValue
public double getValue()
- get the value that the meter is indicating
setPanelColor
public void setPanelColor(Color theColor)
- sets the panel color
getPanelColor
public Color getPanelColor()
- gets the panel color
setCaption
public void setCaption(String theCaption)
- sets the caption
setCaptionFont
public void setCaptionFont(Font theFont)
- sets the font of the caption
setNumbersFont
public void setNumbersFont(Font theFont)
- sets the font of the readings
paint
public synchronized void paint(Graphics g)
- paint the meter on the foreground
- Overrides:
- paint in class Component
update
public void update(Graphics g)
- redefines inherited method to exclude screen clear
- Overrides:
- update in class Component
drawMeter
protected abstract void drawMeter(Graphics g)
minimumSize
public abstract Dimension minimumSize()
- Overrides:
- minimumSize in class Container
preferredSize
public abstract Dimension preferredSize()
- Overrides:
- preferredSize in class Container
All Packages Class Hierarchy This Package Previous Next Index