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.


Constructor Index

 o Thermometer()
Default constructor

Method Index

 o copyright()
 
 o getChangeover()
'get' accessor method for changeover property
 o getMercuryColor()
'set' accessor method for mercuryColor property
 o getMinimumSize()
Returns the minimum size required for this gauge
 o getNegativeColor()
'get' accessor method for negativeColor property
 o getPositiveColor()
'get' accessor method for positiveColor property
 o getPrefix()
'get' accessor method for prefix property
 o getScale()
'get' accessor method for scale property
 o getSuffix()
'get' accessor method for suffix property
 o getTitle()
'get' accessor method for title property
 o getTubeColor()
'get' accessor method for tubeColor property
 o getTubeWidth()
'get' accessor method for tubeWidth property
 o paint(Graphics, Dimension, long, long, long, boolean, long, long, long)
Paint the gauge.
 o paintHighlight(Graphics, Dimension)
Override this method to paint on top of the gauge.
 o setBackground(Color)
'set' accessor method for background property
 o setBounds(int, int, int, int)
Over-ridden Component method to reset gauge images and dimensions when resized
 o setChangeover(long)
'set' accessor method for changeover property
 o setForeground(Color)
'set' accessor method for foreground property
 o setMercuryColor(Color)
'set' accessor method for mercuryColor property
 o setNegativeColor(Color)
'set' accessor method for negativeColor property
 o setPositiveColor(Color)
'set' accessor method for positiveColor property
 o setPrefix(String)
'set' accessor method for prefix property
 o setScale(boolean)
'set' accessor method for scale property
 o setSuffix(String)
'set' accessor method for suffix property
 o setTitle(String)
'set' accessor method for title property
 o setTubeColor(Color)
'set' accessor method for tubeColor property
 o setTubeWidth(int)
'set' accessor method for tubeWidth property

Constructors

 o Thermometer

 public Thermometer()
Default constructor

Methods

 o copyright

 public static String copyright()

 o setTubeWidth

 public void setTubeWidth(int width)
'set' accessor method for tubeWidth property

 o getTubeWidth

 public int getTubeWidth()
'get' accessor method for tubeWidth property

 o setTitle

 public void setTitle(String newtitle)
'set' accessor method for title property

 o getTitle

 public String getTitle()
'get' accessor method for title property

 o setTubeColor

 public void setTubeColor(Color newcolor)
'set' accessor method for tubeColor property

 o getTubeColor

 public Color getTubeColor()
'get' accessor method for tubeColor property

 o setMercuryColor

 public void setMercuryColor(Color newcolor)
'set' accessor method for mercuryColor property

 o getMercuryColor

 public Color getMercuryColor()
'set' accessor method for mercuryColor property

 o setScale

 public void setScale(boolean bool)
'set' accessor method for scale property

 o getScale

 public boolean getScale()
'get' accessor method for scale property

 o setNegativeColor

 public void setNegativeColor(Color newcolor)
'set' accessor method for negativeColor property

 o getNegativeColor

 public Color getNegativeColor()
'get' accessor method for negativeColor property

 o setPositiveColor

 public void setPositiveColor(Color newcolor)
'set' accessor method for positiveColor property

 o getPositiveColor

 public Color getPositiveColor()
'get' accessor method for positiveColor property

 o setChangeover

 public void setChangeover(long newvalue)
'set' accessor method for changeover property

 o getChangeover

 public long getChangeover()
'get' accessor method for changeover property

 o setPrefix

 public void setPrefix(String newprefix)
'set' accessor method for prefix property

 o getPrefix

 public String getPrefix()
'get' accessor method for prefix property

 o setSuffix

 public void setSuffix(String newsuffix)
'set' accessor method for suffix property

 o getSuffix

 public String getSuffix()
'get' accessor method for suffix property

 o setForeground

 public void setForeground(Color newcolor)
'set' accessor method for foreground property
Overrides:
setForeground in class Component

 o setBackground

 public void setBackground(Color newcolor)
'set' accessor method for background property
Overrides:
setBackground in class Component

 o 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

 o getMinimumSize

 public Dimension getMinimumSize()
Returns the minimum size required for this gauge
Overrides:
getMinimumSize in class Component

 o paintHighlight

 protected void paintHighlight(Graphics g,
                               Dimension size)
Override this method to paint on top of the gauge.

 o 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.