java.lang.Object | ||
↳ | org.jfree.chart.plot.Plot | |
↳ | org.jfree.chart.plot.ThermometerPlot |
A plot that displays a single value (from a ValueDataset
) in a
thermometer type display.
This plot supports a number of options:
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | AXIS_GAP | The axis gap. | |||||||||
int | BULB | A constant for the value label position (in the thermometer bulb). | |||||||||
int | BULB_DIAMETER |
This constant is deprecated.
As of 1.0.7, use getBulbDiameter() .
|
|||||||||
int | BULB_RADIUS |
This constant is deprecated.
As of 1.0.7, use getBulbRadius() .
|
|||||||||
int | COLUMN_DIAMETER |
This constant is deprecated.
As of 1.0.7, use getColumnDiameter() .
|
|||||||||
int | COLUMN_RADIUS |
This constant is deprecated.
As of 1.0.7, use getColumnRadius() .
|
|||||||||
int | CRITICAL | A constant for the 'critical' range. | |||||||||
int | DEFAULT_BULB_RADIUS | The default bulb radius. | |||||||||
int | DEFAULT_COLUMN_RADIUS | The default column radius. | |||||||||
int | DEFAULT_GAP | The default gap between the outlines representing the thermometer. | |||||||||
double | DEFAULT_LOWER_BOUND | The default lower bound. | |||||||||
double | DEFAULT_UPPER_BOUND | The default upper bound. | |||||||||
int | DISPLAY_HIGH | Index for display high value in subrangeInfo matrix. | |||||||||
int | DISPLAY_LOW | Index for display low value in subrangeInfo matrix. | |||||||||
int | GAP_DIAMETER |
This constant is deprecated.
As of 1.0.7, use getGap() times two.
|
|||||||||
int | GAP_RADIUS |
This constant is deprecated.
As of 1.0.7, use getGap() .
|
|||||||||
int | LEFT | A constant for the value label position (left of the thermometer). | |||||||||
int | NONE | A constant for the value label position (no label). | |||||||||
int | NORMAL | A constant for the 'normal' range. | |||||||||
int | RANGE_HIGH | Index for high value in subrangeInfo matrix. | |||||||||
int | RANGE_LOW | Index for low value in subrangeInfo matrix. | |||||||||
int | RIGHT | A constant for the value label position (right of the thermometer). | |||||||||
int | UNITS_CELCIUS | A constant for unit type 'Celcius'. | |||||||||
int | UNITS_FAHRENHEIT | A constant for unit type 'Fahrenheit'. | |||||||||
int | UNITS_KELVIN | A constant for unit type 'Kelvin'. | |||||||||
int | UNITS_NONE | A constant for unit type 'None'. | |||||||||
int | WARNING | A constant for the 'warning' range. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.chart.plot.Plot
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UNITS | The unit strings. | ||||||||||
localizationResources | The resourceBundle for the localization. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.chart.plot.Plot
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new thermometer plot.
| |||||||||||
Creates a new thermometer plot, using default attributes where necessary.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of the plot.
| |||||||||||
Checks to see if a new value means the axis range needs adjusting.
| |||||||||||
Draws the plot on a Java 2D graphics device (such as the screen or a
printer).
| |||||||||||
Tests this plot for equality with another object.
| |||||||||||
Returns the axis location.
| |||||||||||
Returns the bulb diameter, which is always twice the value returned
by
getBulbRadius() . | |||||||||||
Returns the bulb radius, in Java2D units.
| |||||||||||
Returns the column diameter, which is always twice the value returned
by
getColumnRadius() . | |||||||||||
Returns the column radius, in Java2D units.
| |||||||||||
Returns the data range.
| |||||||||||
Returns the dataset for the plot.
| |||||||||||
Returns a flag that controls whether or not the thermometer axis zooms
to display the subrange within which the data value falls.
| |||||||||||
Returns the gap, in Java2D units, between the two outlines that
represent the thermometer.
| |||||||||||
Returns the legend items for the plot.
| |||||||||||
Returns the lower bound for the thermometer.
| |||||||||||
This method is deprecated.
This method is not used. Officially deprecated in version
1.0.6.
| |||||||||||
Returns the default mercury paint.
| |||||||||||
This method is deprecated.
This method is not used. Officially deprecated in version
1.0.6.
| |||||||||||
Returns the orientation of the plot.
| |||||||||||
Returns the padding for the thermometer.
| |||||||||||
Returns a short string describing the type of plot.
| |||||||||||
Returns the range axis.
| |||||||||||
This method is deprecated.
This flag doesn't do anything useful/visible. Deprecated
as of version 1.0.6.
| |||||||||||
Gets the paint used for a particular subrange.
| |||||||||||
Returns the paint used to draw the thermometer outline.
| |||||||||||
Returns the stroke used to draw the thermometer outline.
| |||||||||||
Returns a code indicating the unit display type.
| |||||||||||
Returns the upper bound for the thermometer.
| |||||||||||
Returns a flag that controls whether or not the mercury color changes
for each subrange.
| |||||||||||
Gets the font used to display the current value.
| |||||||||||
Returns a code indicating the location at which the value label is
displayed.
| |||||||||||
Gets the paint used to display the current value.
| |||||||||||
Returns
false . | |||||||||||
Returns
true . | |||||||||||
Sets the location at which the axis is displayed relative to the
thermometer, and sends a
PlotChangeEvent to all registered
listeners. | |||||||||||
Sets the bulb radius (in Java2D units) and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the column radius (in Java2D units) and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the dataset for the plot, replacing the existing dataset if there
is one, and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the displayed bounds for a sub range.
| |||||||||||
Sets the flag that controls whether or not the thermometer axis zooms
to display the subrange within which the data value falls.
| |||||||||||
Sets the gap (in Java2D units) between the two outlines that represent
the thermometer, and sends a
PlotChangeEvent to all registered
listeners. | |||||||||||
Sets the lower bound for the thermometer.
| |||||||||||
Sets the default mercury paint and sends a
PlotChangeEvent to
all registered listeners. | |||||||||||
Sets the padding for the thermometer and sends a
PlotChangeEvent
to all registered listeners. | |||||||||||
Sets the lower and upper bounds for the thermometer.
| |||||||||||
Sets the range axis for the plot and sends a
PlotChangeEvent to
all registered listeners. | |||||||||||
This method is deprecated.
This flag doesn't do anything useful/visible. Deprecated
as of version 1.0.6.
| |||||||||||
Sets the bounds for a subrange.
| |||||||||||
Sets the subrangeInfo attribute of the ThermometerPlot object
| |||||||||||
Sets information for a particular range.
| |||||||||||
Sets the paint to be used for a subrange and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the paint used to draw the thermometer outline and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the stroke used to draw the thermometer outline and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
This method is deprecated.
Use setUnits(int) instead. Deprecated as of version 1.0.6,
because this method is a little obscure and redundant anyway.
| |||||||||||
Sets the units to be displayed in the thermometer.
| |||||||||||
Sets the upper bound for the thermometer.
| |||||||||||
Sets the range colour change option.
| |||||||||||
Sets the font used to display the current value.
| |||||||||||
Sets the formatter for the value label and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the location at which the current value is displayed and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the paint used to display the current value and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
A zoom method that does nothing.
| |||||||||||
Multiplies the range on the domain axis/axes by the specified factor.
| |||||||||||
Multiplies the range on the domain axis/axes by the specified factor.
| |||||||||||
This method does nothing.
| |||||||||||
Multiplies the range on the range axis/axes by the specified factor.
| |||||||||||
Zooms the range axes.
| |||||||||||
Multiplies the range on the range axis/axes by the specified factor.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine whether a number is valid and finite.
| |||||||||||
Sets the axis range to the current values in the rangeInfo array.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.chart.plot.Plot
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.jfree.chart.LegendItemSource
| |||||||||||
From interface
org.jfree.chart.event.AxisChangeListener
| |||||||||||
From interface
org.jfree.chart.event.MarkerChangeListener
| |||||||||||
From interface
org.jfree.chart.plot.ValueAxisPlot
| |||||||||||
From interface
org.jfree.chart.plot.Zoomable
| |||||||||||
From interface
org.jfree.data.general.DatasetChangeListener
|
The axis gap.
A constant for the value label position (in the thermometer bulb).
This constant is deprecated.
As of 1.0.7, use getBulbDiameter()
.
The bulb diameter.
This constant is deprecated.
As of 1.0.7, use getBulbRadius()
.
The bulb radius.
This constant is deprecated.
As of 1.0.7, use getColumnDiameter()
.
The column diameter.
This constant is deprecated.
As of 1.0.7, use getColumnRadius()
.
The column radius.
A constant for the 'critical' range.
The default bulb radius.
The default column radius.
The default gap between the outlines representing the thermometer.
The default lower bound.
The default upper bound.
Index for display high value in subrangeInfo matrix.
Index for display low value in subrangeInfo matrix.
This constant is deprecated.
As of 1.0.7, use getGap()
times two.
The gap diameter.
This constant is deprecated.
As of 1.0.7, use getGap()
.
The gap radius.
A constant for the value label position (left of the thermometer).
A constant for the value label position (no label).
A constant for the 'normal' range.
Index for high value in subrangeInfo matrix.
Index for low value in subrangeInfo matrix.
A constant for the value label position (right of the thermometer).
A constant for unit type 'Celcius'.
A constant for unit type 'Fahrenheit'.
A constant for unit type 'Kelvin'.
A constant for unit type 'None'.
A constant for the 'warning' range.
Creates a new thermometer plot.
Creates a new thermometer plot, using default attributes where necessary.
dataset | the data set. |
---|
Returns a clone of the plot.
CloneNotSupportedException | if the plot cannot be cloned. |
---|
Checks to see if a new value means the axis range needs adjusting.
event | the dataset change event. |
---|
Draws the plot on a Java 2D graphics device (such as the screen or a printer).
g2 | the graphics device. |
---|---|
area | the area within which the plot should be drawn. |
anchor | the anchor point (null permitted). |
parentState | the state from the parent plot, if there is one. |
info | collects info about the drawing. |
Tests this plot for equality with another object. The plot's dataset is not considered in the test.
obj | the object (null permitted). |
---|
true
or false
.
Returns the axis location.
Returns the bulb diameter, which is always twice the value returned
by getBulbRadius()
.
Returns the bulb radius, in Java2D units.
Returns the column diameter, which is always twice the value returned
by getColumnRadius()
.
Returns the column radius, in Java2D units.
Returns the data range.
axis | the axis. |
---|
Returns the dataset for the plot.
null
).Returns a flag that controls whether or not the thermometer axis zooms to display the subrange within which the data value falls.
Returns the gap, in Java2D units, between the two outlines that represent the thermometer.
Returns the lower bound for the thermometer. The data value can be set lower than this, but it will not be shown in the thermometer.
This method is deprecated.
This method is not used. Officially deprecated in version
1.0.6.
Returns the maximum value in either the domain or the range, whichever is displayed against the vertical axis for the particular type of plot implementing this interface.
This method is deprecated.
This method is not used. Officially deprecated in version
1.0.6.
Returns the minimum value in either the domain or the range, whichever is displayed against the vertical axis for the particular type of plot implementing this interface.
Returns the orientation of the plot.
VERTICAL
).
Returns the padding for the thermometer. This is the space inside the plot area.
null
).Returns a short string describing the type of plot.
This method is deprecated.
This flag doesn't do anything useful/visible. Deprecated
as of version 1.0.6.
Returns the flag that controls whether not value lines are displayed.
Gets the paint used for a particular subrange.
range | the range (. |
---|
Returns the paint used to draw the thermometer outline.
null
).Returns the stroke used to draw the thermometer outline.
null
).Returns a code indicating the unit display type. This is one of
UNITS_NONE
, UNITS_FAHRENHEIT
, UNITS_CELCIUS
and UNITS_KELVIN
.
Returns the upper bound for the thermometer. The data value can be set higher than this, but it will not be shown in the thermometer.
Returns a flag that controls whether or not the mercury color changes for each subrange.
Returns false
.
Returns true
.
Sets the location at which the axis is displayed relative to the
thermometer, and sends a PlotChangeEvent
to all registered
listeners.
Sets the bulb radius (in Java2D units) and sends a
PlotChangeEvent
to all registered listeners.
r | the new radius (in Java2D units). |
---|
Sets the column radius (in Java2D units) and sends a
PlotChangeEvent
to all registered listeners.
r | the new radius. |
---|
Sets the dataset for the plot, replacing the existing dataset if there
is one, and sends a PlotChangeEvent
to all registered listeners.
dataset | the dataset (null permitted). |
---|
Sets the displayed bounds for a sub range.
range | the range type. |
---|---|
low | the low value. |
high | the high value. |
Sets the flag that controls whether or not the thermometer axis zooms to display the subrange within which the data value falls.
flag | the flag. |
---|
Sets the gap (in Java2D units) between the two outlines that represent
the thermometer, and sends a PlotChangeEvent
to all registered
listeners.
gap | the new gap. |
---|
Sets the lower bound for the thermometer.
lower | the lower bound. |
---|
Sets the default mercury paint and sends a PlotChangeEvent
to
all registered listeners.
paint | the new paint (null not permitted). |
---|
Sets the padding for the thermometer and sends a PlotChangeEvent
to all registered listeners.
padding | the padding (null not permitted). |
---|
Sets the lower and upper bounds for the thermometer.
lower | the lower bound. |
---|---|
upper | the upper bound. |
Sets the range axis for the plot and sends a PlotChangeEvent
to
all registered listeners.
axis | the new axis (null not permitted). |
---|
This method is deprecated.
This flag doesn't do anything useful/visible. Deprecated
as of version 1.0.6.
Sets the display as to whether to show value lines in the output.
b | Whether to show value lines in the thermometer |
---|
Sets the bounds for a subrange.
range | the range type. |
---|---|
low | the low value. |
high | the high value. |
Sets the subrangeInfo attribute of the ThermometerPlot object
range | the new rangeInfo value. |
---|---|
rangeLow | the new rangeInfo value |
rangeHigh | the new rangeInfo value |
displayLow | the new rangeInfo value |
displayHigh | the new rangeInfo value |
Sets information for a particular range.
range | the range to specify information about. |
---|---|
low | the low value for the range |
hi | the high value for the range |
Sets the paint to be used for a subrange and sends a
PlotChangeEvent
to all registered listeners.
range | the range (0, 1 or 2). |
---|---|
paint | the paint to be applied (null not permitted). |
Sets the paint used to draw the thermometer outline and sends a
PlotChangeEvent
to all registered listeners.
paint | the new paint (null ignored). |
---|
Sets the stroke used to draw the thermometer outline and sends a
PlotChangeEvent
to all registered listeners.
s | the new stroke (null ignored). |
---|
This method is deprecated.
Use setUnits(int) instead. Deprecated as of version 1.0.6,
because this method is a little obscure and redundant anyway.
Sets the unit type.
u | the unit type (null ignored). |
---|
Sets the units to be displayed in the thermometer. Use one of the following constants:
u | the new unit type. |
---|
Sets the upper bound for the thermometer.
upper | the upper bound. |
---|
Sets the range colour change option.
flag | the new range colour change option |
---|
Sets the font used to display the current value.
f | the new font (null not permitted). |
---|
Sets the formatter for the value label and sends a
PlotChangeEvent
to all registered listeners.
formatter | the new formatter (null not permitted).
|
---|
Sets the location at which the current value is displayed and sends a
PlotChangeEvent
to all registered listeners.
The location can be one of the constants:
NONE
,
RIGHT
LEFT
and
BULB
.
location | the location. |
---|
Sets the paint used to display the current value and sends a
PlotChangeEvent
to all registered listeners.
paint | the new paint (null not permitted). |
---|
A zoom method that does nothing. Plots are required to support the zoom operation. In the case of a thermometer chart, it doesn't make sense to zoom in or out, so the method is empty.
percent | the zoom percentage. |
---|
Multiplies the range on the domain axis/axes by the specified factor.
factor | the zoom factor. |
---|---|
state | the plot state. |
source | the source point. |
Multiplies the range on the domain axis/axes by the specified factor.
factor | the zoom factor. |
---|---|
state | the plot state. |
source | the source point. |
useAnchor | a flag that controls whether or not the source point is used for the zoom anchor. |
This method does nothing.
lowerPercent | the lower percent. |
---|---|
upperPercent | the upper percent. |
state | the plot state. |
source | the source point. |
Multiplies the range on the range axis/axes by the specified factor.
factor | the zoom factor. |
---|---|
state | the plot state. |
source | the source point. |
useAnchor | a flag that controls whether or not the source point is used for the zoom anchor. |
Zooms the range axes.
lowerPercent | the lower percent. |
---|---|
upperPercent | the upper percent. |
state | the plot state. |
source | the source point. |
Multiplies the range on the range axis/axes by the specified factor.
factor | the zoom factor. |
---|---|
state | the plot state. |
source | the source point. |
Determine whether a number is valid and finite.
d | the number to be tested. |
---|
true
if the number is valid and finite, and
false
otherwise.
Sets the axis range to the current values in the rangeInfo array.