java.lang.Object | ||
↳ | org.jfree.chart.plot.Plot | |
↳ | org.jfree.chart.plot.PolarPlot |
Plots data that is in (theta, radius) pairs where theta equal to zero is due north and increases clockwise.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
double | DEFAULT_ANGLE_TICK_UNIT_SIZE | The default angle tick unit size. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT_GRIDLINE_PAINT | The default grid line paint. | ||||||||||
DEFAULT_GRIDLINE_STROKE | The default grid line stroke. | ||||||||||
localizationResources | The resourceBundle for the localization. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
| |||||||||||
Creates a new plot.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add text to be displayed in the lower right hand corner and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Clear the list of corner text items and sends a
PlotChangeEvent
to all registered listeners. | |||||||||||
Returns a clone of the plot.
| |||||||||||
Receives notification of a change to the plot's m_Dataset.
| |||||||||||
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 paint for the grid lines (if any) plotted against the
angular axis.
| |||||||||||
Returns the stroke for the grid-lines (if any) plotted against the
angular axis.
| |||||||||||
Returns the font used to display the angle labels.
| |||||||||||
Returns the paint used to display the angle labels.
| |||||||||||
Returns the tick unit that controls the spacing of the angular grid
lines.
| |||||||||||
Returns the axis for the plot.
| |||||||||||
Returns the range for the specified axis.
| |||||||||||
Returns the primary dataset for the plot.
| |||||||||||
Returns the legend items for the plot.
| |||||||||||
Returns the upper bound of the radius axis.
| |||||||||||
Returns the orientation of the plot.
| |||||||||||
Returns the plot type as a string.
| |||||||||||
Returns the paint for the grid lines (if any) plotted against the radius
axis.
| |||||||||||
Returns the stroke for the grid lines (if any) plotted against the
radius axis.
| |||||||||||
Returns the item renderer.
| |||||||||||
Returns the number of series in the dataset for this plot.
| |||||||||||
Returns
true if the angular gridlines are visible, and
false | |||||||||||
Returns a flag that controls whether or not the angle labels are visible.
| |||||||||||
Returns
false always. | |||||||||||
Returns
true if the radius axis grid is visible, and
false | |||||||||||
Returns
true to indicate that the range axis is zoomable. | |||||||||||
Remove the given text from the list of corner text items and
sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Notifies all registered listeners of a property change.
| |||||||||||
Sets the paint for the grid lines plotted against the angular axis.
| |||||||||||
Sets the stroke for the grid lines plotted against the angular axis and
sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the flag that controls whether or not the angular grid-lines are
visible.
| |||||||||||
Sets the font used to display the angle labels and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the paint used to display the angle labels and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the flag that controls whether or not the angle labels are visible,
and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the tick unit that controls the spacing of the angular grid
lines, and sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the axis for the plot and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the dataset for the plot, replacing the existing dataset if there
is one.
| |||||||||||
Sets the paint for the grid lines plotted against the radius axis and
sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the stroke for the grid lines plotted against the radius axis and
sends a
PlotChangeEvent to all registered listeners. | |||||||||||
Sets the flag that controls whether or not the radius axis grid lines
are visible.
| |||||||||||
Sets the item renderer, and notifies all listeners of a change to the
plot.
| |||||||||||
Translates a (theta, radius) pair into Java2D coordinates.
| |||||||||||
Zooms the axis ranges by the specified percentage about the anchor point.
| |||||||||||
This method is required by the
Zoomable interface, but since
the plot does not have any domain axes, it does nothing. | |||||||||||
This method is required by the
Zoomable interface, but since
the plot does not have any domain axes, it does nothing. | |||||||||||
This method is required by the
Zoomable interface, but since
the plot does not have any domain axes, it does nothing. | |||||||||||
Multiplies the range on the range axis by the specified factor.
| |||||||||||
Zooms in on the range axes.
| |||||||||||
Multiplies the range on the range axis/axes by the specified factor.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A utility method for drawing the axes.
| |||||||||||
Draws the corner text items.
| |||||||||||
Draws the gridlines for the plot, if they are visible.
| |||||||||||
Generates a list of tick values for the angular tick marks.
| |||||||||||
Draws a representation of the data within the dataArea region, using the
current m_Renderer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
The default angle tick unit size.
Default constructor.
Creates a new plot.
dataset | the dataset (null permitted). |
---|---|
radiusAxis | the radius axis (null permitted). |
renderer | the renderer (null permitted).
|
Add text to be displayed in the lower right hand corner and sends a
PlotChangeEvent
to all registered listeners.
text | the text to display (null not permitted). |
---|
Clear the list of corner text items and sends a PlotChangeEvent
to all registered listeners.
Returns a clone of the plot.
CloneNotSupportedException | this can occur if some component of the plot cannot be cloned. |
---|
Receives notification of a change to the plot's m_Dataset.
The axis ranges are updated if necessary.
event | information about the event (not used here). |
---|
Draws the plot on a Java 2D graphics device (such as the screen or a printer).
This plot relies on a PolarItemRenderer
to draw each
item in the plot. This allows the visual representation of the data to
be changed easily.
The optional info argument collects information about the rendering of
the plot (dimensions, tooltip information etc). Just pass in
null
if you do not need this information.
g2 | the graphics device. |
---|---|
area | the area within which the plot (including axes and labels) should be drawn. |
anchor | the anchor point (null permitted). |
parentState | ignored. |
info | collects chart drawing information (null
permitted).
|
Tests this plot for equality with another object.
obj | the object (null permitted). |
---|
true
or false
.
Returns the paint for the grid lines (if any) plotted against the angular axis.
null
).Returns the stroke for the grid-lines (if any) plotted against the angular axis.
null
).Returns the font used to display the angle labels.
null
).Returns the paint used to display the angle labels.
null
).Returns the tick unit that controls the spacing of the angular grid lines.
null
).Returns the range for the specified axis.
axis | the axis. |
---|
Returns the primary dataset for the plot.
null
).Returns the legend items for the plot. Each legend item is generated by the plot's m_Renderer, since the m_Renderer is responsible for the visual representation of the data.
Returns the upper bound of the radius axis.
Returns the orientation of the plot.
Returns the plot type as a string.
Returns the paint for the grid lines (if any) plotted against the radius axis.
null
).Returns the stroke for the grid lines (if any) plotted against the radius axis.
null
).Returns the item renderer.
null
).Returns the number of series in the dataset for this plot. If the
dataset is null
, the method returns 0.
Returns true
if the angular gridlines are visible, and
false
otherwise.
true
or false
.Returns a flag that controls whether or not the angle labels are visible.
Returns false
always.
false
always.
Returns true
if the radius axis grid is visible, and
false
otherwise.
true
or false
.Returns true
to indicate that the range axis is zoomable.
true
.
Remove the given text from the list of corner text items and
sends a PlotChangeEvent
to all registered listeners.
text | the text to remove (null ignored). |
---|
Notifies all registered listeners of a property change.
One source of property change events is the plot's m_Renderer.
event | information about the property change. |
---|
Sets the paint for the grid lines plotted against the angular axis.
If you set this to null
, no grid lines will be drawn.
paint | the paint (null permitted). |
---|
Sets the stroke for the grid lines plotted against the angular axis and
sends a PlotChangeEvent
to all registered listeners.
If you set this to null
, no grid lines will be drawn.
stroke | the stroke (null permitted). |
---|
Sets the flag that controls whether or not the angular grid-lines are visible.
If the flag value is changed, a PlotChangeEvent
is sent to all
registered listeners.
visible | the new value of the flag. |
---|
Sets the font used to display the angle labels and sends a
PlotChangeEvent
to all registered listeners.
font | the font (null not permitted). |
---|
Sets the paint used to display the angle labels and sends a
PlotChangeEvent
to all registered listeners.
paint | the paint (null not permitted).
|
---|
Sets the flag that controls whether or not the angle labels are visible,
and sends a PlotChangeEvent
to all registered listeners.
visible | the flag. |
---|
Sets the tick unit that controls the spacing of the angular grid
lines, and sends a PlotChangeEvent
to all registered listeners.
unit | the tick unit (null not permitted). |
---|
Sets the axis for the plot and sends a PlotChangeEvent
to all
registered listeners.
axis | the new axis (null permitted).
|
---|
Sets the dataset for the plot, replacing the existing dataset if there is one.
dataset | the dataset (null permitted). |
---|
Sets the paint for the grid lines plotted against the radius axis and
sends a PlotChangeEvent
to all registered listeners.
If you set this to null
, no grid lines will be drawn.
paint | the paint (null permitted). |
---|
Sets the stroke for the grid lines plotted against the radius axis and
sends a PlotChangeEvent
to all registered listeners.
If you set this to null
, no grid lines will be drawn.
stroke | the stroke (null permitted). |
---|
Sets the flag that controls whether or not the radius axis grid lines are visible.
If the flag value is changed, a PlotChangeEvent
is sent to all
registered listeners.
visible | the new value of the flag. |
---|
Sets the item renderer, and notifies all listeners of a change to the plot.
If the renderer is set to null
, no chart will be drawn.
renderer | the new renderer (null permitted). |
---|
Translates a (theta, radius) pair into Java2D coordinates. If
radius
is less than the lower bound of the axis, then
this method returns the centre point.
angleDegrees | the angle in degrees. |
---|---|
radius | the radius. |
dataArea | the data area. |
Zooms the axis ranges by the specified percentage about the anchor point.
percent | the amount of the zoom. |
---|
This method is required by the Zoomable
interface, but since
the plot does not have any domain axes, it does nothing.
factor | the zoom factor. |
---|---|
state | the plot state. |
source | the source point (in Java2D coordinates). |
This method is required by the Zoomable
interface, but since
the plot does not have any domain axes, it does nothing.
factor | the zoom factor. |
---|---|
state | the plot state. |
source | the source point (in Java2D coordinates). |
useAnchor | use source point as zoom anchor? |
This method is required by the Zoomable
interface, but since
the plot does not have any domain axes, it does nothing.
lowerPercent | the new lower bound. |
---|---|
upperPercent | the new upper bound. |
state | the plot state. |
source | the source point (in Java2D coordinates). |
Multiplies the range on the range axis by the specified factor.
factor | the zoom factor. |
---|---|
info | the plot rendering info. |
source | the source point (in Java2D space). |
useAnchor | use source point as zoom anchor? |
Zooms in on the range axes.
lowerPercent | the new lower bound. |
---|---|
upperPercent | the new upper bound. |
state | the plot state. |
source | the source point (in Java2D coordinates). |
Multiplies the range on the range axis/axes by the specified factor.
factor | the zoom factor. |
---|---|
state | the plot state. |
source | the source point (in Java2D coordinates). |
A utility method for drawing the axes.
g2 | the graphics device. |
---|---|
plotArea | the plot area. |
dataArea | the data area. |
Draws the corner text items.
g2 | the drawing surface. |
---|---|
area | the area. |
Draws the gridlines for the plot, if they are visible.
g2 | the graphics device. |
---|---|
dataArea | the data area. |
angularTicks | the ticks for the angular axis. |
radialTicks | the ticks for the radial axis. |
Generates a list of tick values for the angular tick marks.
NumberTick
instances.Draws a representation of the data within the dataArea region, using the current m_Renderer.
g2 | the graphics device. |
---|---|
dataArea | the region in which the data is to be drawn. |
info | an optional object for collection dimension
information (null permitted).
|