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...
addSubtitle
public void addSubtitle(String subtitle)
Adds a subtitle to the chart.
addSubtitle
public void addSubtitle(String subtitle,
Font font)
Adds a subtitle to the chart.
subtitle
- the subtitle.font
- the subtitle font.
addSubtitle
public void addSubtitle(Title subtitle)
Adds a subtitle to the chart.
changeTickFontSize
public void changeTickFontSize(int delta)
Increases or decreases the tick font size.
delta
- the change in size.
getValue
public Number getValue()
Returns the value of the thermometer.
setBackground
public void setBackground(Color bg)
Sets the background color.
bg
- the background color.
setFollowDataInSubranges
public void setFollowDataInSubranges(boolean flag)
Sets the flag that controls whether or not the display range follows the
data value.
flag
- the new value of the flag.
setForeground
public void setForeground(Color fg)
Sets the foreground color.
fg
- the foreground color.
setOutlinePaint
public void setOutlinePaint(Paint p)
Sets the outline paint.
setRange
public void setRange(double lower,
double upper)
Sets the lower and upper bounds for the thermometer.
lower
- the lower bound.upper
- the upper bound.
setShowAxisLocation
public void setShowAxisLocation(int location)
Sets the location for the axis.
setShowValueLines
public void setShowValueLines(boolean b)
Sets the flag that controls whether or not value lines are displayed.
setSubrangeInfo
public void setSubrangeInfo(int range,
double displayLow,
double displayHigh)
Sets the range.
range
- the range type.displayLow
- the low value.displayHigh
- the high value.
setSubrangeInfo
public void setSubrangeInfo(int range,
double rangeLow,
double rangeHigh,
double displayLow,
double displayHigh)
Sets the range.
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.
setTickFontStyle
public void setTickFontStyle(int style)
Sets the tick font style.
setTickLabelFont
public void setTickLabelFont(Font font)
Sets the tick label font.
setUnits
public void setUnits(int i)
Sets the unit type.
setValue
public void setValue(Number value)
Sets the value of the thermometer.
setValue
public void setValue(double value)
Sets the value of the thermometer.
setValueFont
public void setValueFont(Font f)
Sets the value font.
setValueFormat
public void setValueFormat(DecimalFormat df)
Sets the value format for the thermometer.
setValueLocation
public void setValueLocation(int loc)
Sets the location at which the temperature value is displayed.
setValuePaint
public void setValuePaint(Paint paint)
Sets the value paint.