public class

JThermometer

extends JPanel
implements Serializable
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JPanel
           ↳ org.jfree.chart.plot.JThermometer

Class Overview

An initial quick and dirty. The concept behind this class would be to generate a gui bean that could be used within JBuilder, Netbeans etc...

Summary

[Expand]
Inherited Constants
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class javax.swing.JComponent
Public Constructors
JThermometer()
Default constructor.
Public Methods
void addSubtitle(String subtitle)
Adds a subtitle to the chart.
void addSubtitle(String subtitle, Font font)
Adds a subtitle to the chart.
void addSubtitle(Title subtitle)
Adds a subtitle to the chart.
void changeTickFontSize(int delta)
Increases or decreases the tick font size.
int getShowAxisLocation()
Returns the location for the axis.
Font getTickLabelFont()
Returns the tick label font.
Number getValue()
Returns the value of the thermometer.
void setBackground(Color bg)
Sets the background color.
void setFollowDataInSubranges(boolean flag)
Sets the flag that controls whether or not the display range follows the data value.
void setForeground(Color fg)
Sets the foreground color.
void setOutlinePaint(Paint p)
Sets the outline paint.
void setRange(double lower, double upper)
Sets the lower and upper bounds for the thermometer.
void setShowAxisLocation(int location)
Sets the location for the axis.
void setShowValueLines(boolean b)
Sets the flag that controls whether or not value lines are displayed.
void setSubrangeInfo(int range, double rangeLow, double rangeHigh, double displayLow, double displayHigh)
Sets the range.
void setSubrangeInfo(int range, double displayLow, double displayHigh)
Sets the range.
void setTickFontStyle(int style)
Sets the tick font style.
void setTickLabelFont(Font font)
Sets the tick label font.
void setUnits(int i)
Sets the unit type.
void setValue(Number value)
Sets the value of the thermometer.
void setValue(double value)
Sets the value of the thermometer.
void setValueFont(Font f)
Sets the value font.
void setValueFormat(DecimalFormat df)
Sets the value format for the thermometer.
void setValueLocation(int loc)
Sets the location at which the temperature value is displayed.
void setValuePaint(Paint paint)
Sets the value paint.
[Expand]
Inherited Methods
From class javax.swing.JPanel
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver
From interface javax.accessibility.Accessible

Public Constructors

public JThermometer ()

Default constructor.

Public Methods

public void addSubtitle (String subtitle)

Adds a subtitle to the chart.

Parameters
subtitle the subtitle.

public void addSubtitle (String subtitle, Font font)

Adds a subtitle to the chart.

Parameters
subtitle the subtitle.
font the subtitle font.

public void addSubtitle (Title subtitle)

Adds a subtitle to the chart.

Parameters
subtitle the subtitle.

public void changeTickFontSize (int delta)

Increases or decreases the tick font size.

Parameters
delta the change in size.

public int getShowAxisLocation ()

Returns the location for the axis.

Returns
  • The location.

public Font getTickLabelFont ()

Returns the tick label font.

Returns
  • The tick label font.

public Number getValue ()

Returns the value of the thermometer.

Returns
  • The value.

public void setBackground (Color bg)

Sets the background color.

Parameters
bg the background color.

public void setFollowDataInSubranges (boolean flag)

Sets the flag that controls whether or not the display range follows the data value.

Parameters
flag the new value of the flag.

public void setForeground (Color fg)

Sets the foreground color.

Parameters
fg the foreground color.

public void setOutlinePaint (Paint p)

Sets the outline paint.

Parameters
p the paint.

public void setRange (double lower, double upper)

Sets the lower and upper bounds for the thermometer.

Parameters
lower the lower bound.
upper the upper bound.

public void setShowAxisLocation (int location)

Sets the location for the axis.

Parameters
location the location.

public void setShowValueLines (boolean b)

Sets the flag that controls whether or not value lines are displayed.

Parameters
b the new flag value.

public void setSubrangeInfo (int range, double rangeLow, double rangeHigh, double displayLow, double displayHigh)

Sets the range.

Parameters
range the range type.
rangeLow the low value for the range.
rangeHigh the high value for the range.
displayLow the low value for display.
displayHigh the high value for display.

public void setSubrangeInfo (int range, double displayLow, double displayHigh)

Sets the range.

Parameters
range the range type.
displayLow the low value.
displayHigh the high value.

public void setTickFontStyle (int style)

Sets the tick font style.

Parameters
style the style.

public void setTickLabelFont (Font font)

Sets the tick label font.

Parameters
font the font.

public void setUnits (int i)

Sets the unit type.

Parameters
i the unit type.

public void setValue (Number value)

Sets the value of the thermometer.

Parameters
value the value.

public void setValue (double value)

Sets the value of the thermometer.

Parameters
value the value.

public void setValueFont (Font f)

Sets the value font.

Parameters
f the font.

public void setValueFormat (DecimalFormat df)

Sets the value format for the thermometer.

Parameters
df the formatter.

public void setValueLocation (int loc)

Sets the location at which the temperature value is displayed.

Parameters
loc the location.

public void setValuePaint (Paint paint)

Sets the value paint.

Parameters
paint the paint.