org.jfree.chart.plot
public class JThermometer extends JPanel implements Serializable
Constructor Summary | |
---|---|
JThermometer()
Default constructor. |
Method Summary | |
---|---|
void | addSubtitle(Title subtitle)
Adds a subtitle to the chart.
|
void | addSubtitle(String subtitle)
Adds a subtitle to the chart.
|
void | addSubtitle(String subtitle, Font font)
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 displayLow, double displayHigh)
Sets the range.
|
void | setSubrangeInfo(int range, double rangeLow, double rangeHigh, 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(double value)
Sets the value of the thermometer.
|
void | setValue(Number 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.
|
Parameters: subtitle the subtitle.
Parameters: subtitle the subtitle.
Parameters: subtitle the subtitle. font the subtitle font.
Parameters: delta the change in size.
Returns: The location.
Returns: The tick label font.
Returns: The value.
Parameters: bg the background color.
Parameters: flag the new value of the flag.
Parameters: fg the foreground color.
Parameters: p the paint.
Parameters: lower the lower bound. upper the upper bound.
Parameters: location the location.
Parameters: b the new flag value.
Parameters: range the range type. displayLow the low value. displayHigh the high value.
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.
Parameters: style the style.
Parameters: font the font.
Parameters: i the unit type.
Parameters: value the value.
Parameters: value the value.
Parameters: f the font.
Parameters: df the formatter.
Parameters: loc the location.
Parameters: paint the paint.