All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.beans.gauge.Thermometer
java.lang.Object
|
+----java.awt.Component
|
+----COM.ibm.beans.gauge.BaseGauge
|
+----COM.ibm.beans.gauge.Thermometer
- public class Thermometer
- extends BaseGauge
- implements Serializable
This gauge represents a thermometer with an optional scale.
The gauge value is represented by a column of mercury inside a
tube. The mercury will slide smoothly towards new values. The
scale shows the minimum and maximum of the gauge range together
with a changeover point. These values are hilighted by two
colored bars drawn down the sides of the tube, one from the
minimum value to the changeover point, and the other from the
changeover point to the maximum value. The current value is
displayed in the bulb as text with an optional prefix and suffix.
Thermometer()
- Default constructor
copyright()
-
getChangeover()
- 'get' accessor method for changeover property
getMercuryColor()
- 'set' accessor method for mercuryColor property
getMinimumSize()
- Returns the minimum size required for this gauge
getNegativeColor()
- 'get' accessor method for negativeColor property
getPositiveColor()
- 'get' accessor method for positiveColor property
getPrefix()
- 'get' accessor method for prefix property
getScale()
- 'get' accessor method for scale property
getSuffix()
- 'get' accessor method for suffix property
getTitle()
- 'get' accessor method for title property
getTubeColor()
- 'get' accessor method for tubeColor property
getTubeWidth()
- 'get' accessor method for tubeWidth property
paint(Graphics,
Dimension, long, long, long, boolean, long, long, long)
- Paint the gauge.
paintHighlight(Graphics,
Dimension)
- Override this method to paint on top of the gauge.
setBackground(Color)
- 'set' accessor method for background property
setBounds(int,
int, int, int)
- Over-ridden Component method to reset gauge images and
dimensions when resized
setChangeover(long)
- 'set' accessor method for changeover property
setForeground(Color)
- 'set' accessor method for foreground property
setMercuryColor(Color)
- 'set' accessor method for mercuryColor property
setNegativeColor(Color)
- 'set' accessor method for negativeColor property
setPositiveColor(Color)
- 'set' accessor method for positiveColor property
setPrefix(String)
- 'set' accessor method for prefix property
setScale(boolean)
- 'set' accessor method for scale property
setSuffix(String)
- 'set' accessor method for suffix property
setTitle(String)
- 'set' accessor method for title property
setTubeColor(Color)
- 'set' accessor method for tubeColor property
setTubeWidth(int)
- 'set' accessor method for tubeWidth property
Thermometer
public Thermometer()
- Default constructor
copyright
public static String copyright()
setTubeWidth
public void setTubeWidth(int width)
- 'set' accessor method for tubeWidth property
getTubeWidth
public int getTubeWidth()
- 'get' accessor method for tubeWidth property
setTitle
public void setTitle(String newtitle)
- 'set' accessor method for title property
getTitle
public String getTitle()
- 'get' accessor method for title property
setTubeColor
public void setTubeColor(Color newcolor)
- 'set' accessor method for tubeColor property
getTubeColor
public Color getTubeColor()
- 'get' accessor method for tubeColor property
setMercuryColor
public void setMercuryColor(Color newcolor)
- 'set' accessor method for mercuryColor property
getMercuryColor
public Color getMercuryColor()
- 'set' accessor method for mercuryColor property
setScale
public void setScale(boolean bool)
- 'set' accessor method for scale property
getScale
public boolean getScale()
- 'get' accessor method for scale property
setNegativeColor
public void setNegativeColor(Color newcolor)
- 'set' accessor method for negativeColor property
getNegativeColor
public Color getNegativeColor()
- 'get' accessor method for negativeColor property
setPositiveColor
public void setPositiveColor(Color newcolor)
- 'set' accessor method for positiveColor property
getPositiveColor
public Color getPositiveColor()
- 'get' accessor method for positiveColor property
setChangeover
public void setChangeover(long newvalue)
- 'set' accessor method for changeover property
getChangeover
public long getChangeover()
- 'get' accessor method for changeover property
setPrefix
public void setPrefix(String newprefix)
- 'set' accessor method for prefix property
getPrefix
public String getPrefix()
- 'get' accessor method for prefix property
setSuffix
public void setSuffix(String newsuffix)
- 'set' accessor method for suffix property
getSuffix
public String getSuffix()
- 'get' accessor method for suffix property
setForeground
public void setForeground(Color newcolor)
- 'set' accessor method for foreground property
- Overrides:
- setForeground
in class Component
setBackground
public void setBackground(Color newcolor)
- 'set' accessor method for background property
- Overrides:
- setBackground
in class Component
setBounds
public synchronized void setBounds(int x,
int y,
int w,
int h)
- Over-ridden Component method to reset gauge images and
dimensions when resized
- Overrides:
- setBounds
in class Component
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size required for this gauge
- Overrides:
- getMinimumSize
in class Component
paintHighlight
protected void paintHighlight(Graphics g,
Dimension size)
- Override this method to paint on top of the gauge.
paint
public synchronized void paint(Graphics g,
Dimension s,
long displayvalue,
long min,
long max,
boolean incremental,
long previousdisplayvalue,
long previousmin,
long previousmax)
- Paint the gauge.
- Overrides:
- paint
in class BaseGauge
All Packages Class Hierarchy This Package Previous Next Index
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.