java.lang.Object | ||
↳ | org.jfree.chart.plot.Plot | |
↳ | org.jfree.chart.plot.dial.DialPlot |
A dial plot composed of user-definable layers.
The example shown here is generated by the DialDemo2.java
program included in the JFreeChart Demo Collection:
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of
DialPlot . | |||||||||||
Creates a new instance of
DialPlot . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a layer to the plot and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Adds a pointer to the plot and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Adds a dial scale to the plot and sends a
PlotChangeEvent to
all registered listeners. | |||||||||||
Receives notification when a layer has changed, and responds by
forwarding a
PlotChangeEvent to all registered listeners. | |||||||||||
Draws the plot.
| |||||||||||
Tests this
DialPlot instance for equality with an
arbitrary object. | |||||||||||
Returns the background.
| |||||||||||
Returns the cap.
| |||||||||||
Returns the dataset at the given index.
| |||||||||||
Returns the primary dataset for the plot.
| |||||||||||
Returns the number of datasets.
| |||||||||||
Returns the dial's frame.
| |||||||||||
Returns the index for the specified layer.
| |||||||||||
Returns the plot type.
| |||||||||||
Returns the dial pointer that is associated with the specified
dataset, or
null . | |||||||||||
Returns the index for the specified pointer.
| |||||||||||
Returns the scale at the given index.
| |||||||||||
Returns the dial scale for a specific dataset.
| |||||||||||
Returns the value from the specified dataset.
| |||||||||||
Returns the height of the viewing rectangle.
| |||||||||||
Returns the width of the viewing rectangle.
| |||||||||||
Returns the x-coordinate of the viewing rectangle.
| |||||||||||
Returns the y-coordinate of the viewing rectangle.
| |||||||||||
Returns a hash code for this instance.
| |||||||||||
Maps a dataset to a particular scale.
| |||||||||||
A utility method that computes a rectangle using relative radius values.
| |||||||||||
Removes the specified layer and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Removes the layer at the specified index and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Removes the specified pointer and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Removes the pointer at the specified index and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the background layer and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the cap 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 a dataset for the plot.
| |||||||||||
Sets the dial's frame and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the viewing rectangle, relative to the dial's framing rectangle,
and sends a
PlotChangeEvent to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new instance of DialPlot
.
Creates a new instance of DialPlot
.
dataset | the dataset (null permitted).
|
---|
Adds a layer to the plot and sends a PlotChangeEvent
to all
registered listeners.
layer | the layer (null not permitted).
|
---|
Adds a pointer to the plot and sends a PlotChangeEvent
to all
registered listeners.
pointer | the pointer (null not permitted).
|
---|
Adds a dial scale to the plot and sends a PlotChangeEvent
to
all registered listeners.
index | the scale index. |
---|---|
scale | the scale (null not permitted).
|
Receives notification when a layer has changed, and responds by
forwarding a PlotChangeEvent
to all registered listeners.
event | the event. |
---|
Draws the plot. This method is usually called by the JFreeChart
instance that manages the plot.
g2 | the graphics target. |
---|---|
area | the area in which the plot should be drawn. |
anchor | the anchor point (typically the last point that the
mouse clicked on, null is permitted). |
parentState | the state for the parent plot (if any). |
info | used to collect plot rendering info (null
permitted).
|
Tests this DialPlot
instance for equality with an
arbitrary object. The plot's dataset(s) is (are) not included in
the test.
obj | the object (null permitted). |
---|
Returns the dataset at the given index.
index | the dataset index. |
---|
null
).
Returns the primary dataset for the plot.
null
).
Returns the number of datasets.
Returns the index for the specified layer.
layer | the layer (null not permitted). |
---|
Returns the dial pointer that is associated with the specified
dataset, or null
.
datasetIndex | the dataset index. |
---|
Returns the index for the specified pointer.
pointer | the pointer (null not permitted). |
---|
Returns the scale at the given index.
index | the scale index. |
---|
null
).
Returns the dial scale for a specific dataset.
datasetIndex | the dataset index. |
---|
Returns the value from the specified dataset.
datasetIndex | the dataset index. |
---|
Returns the height of the viewing rectangle. This is specified in the range 0.0 to 1.0, relative to the dial's framing rectangle.
Returns the width of the viewing rectangle. This is specified in the range 0.0 to 1.0, relative to the dial's framing rectangle.
Returns the x-coordinate of the viewing rectangle. This is specified in the range 0.0 to 1.0, relative to the dial's framing rectangle.
Returns the y-coordinate of the viewing rectangle. This is specified in the range 0.0 to 1.0, relative to the dial's framing rectangle.
Returns a hash code for this instance.
Maps a dataset to a particular scale.
index | the dataset index (zero-based). |
---|---|
scaleIndex | the scale index (zero-based). |
A utility method that computes a rectangle using relative radius values.
rect | the reference rectangle (null not permitted). |
---|---|
radiusW | the width radius (must be > 0.0) |
radiusH | the height radius. |
Removes the specified layer and sends a PlotChangeEvent
to all
registered listeners.
layer | the layer (null not permitted).
|
---|
Removes the layer at the specified index and sends a
PlotChangeEvent
to all registered listeners.
index | the index. |
---|
Removes the specified pointer and sends a PlotChangeEvent
to all
registered listeners.
pointer | the pointer (null not permitted).
|
---|
Removes the pointer at the specified index and sends a
PlotChangeEvent
to all registered listeners.
index | the index. |
---|
Sets the background layer and sends a PlotChangeEvent
to all
registered listeners.
background | the background layer (null permitted). |
---|
Sets the cap and sends a PlotChangeEvent
to all registered
listeners.
cap | the cap (null permitted). |
---|
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 a dataset for the plot.
index | the dataset index. |
---|---|
dataset | the dataset (null permitted).
|
Sets the dial's frame and sends a PlotChangeEvent
to all
registered listeners.
frame | the frame (null not permitted). |
---|
Sets the viewing rectangle, relative to the dial's framing rectangle,
and sends a PlotChangeEvent
to all registered listeners.
x | the x-coordinate (in the range 0.0 to 1.0). |
---|---|
y | the y-coordinate (in the range 0.0 to 1.0). |
w | the width (in the range 0.0 to 1.0). |
h | the height (in the range 0.0 to 1.0). |