public class PolarPlot extends Plot implements ValueAxisPlot, Zoomable, RendererChangeListener, java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ANGLE_OFFSET
The default angle offset.
|
static double |
DEFAULT_ANGLE_TICK_UNIT_SIZE
The default angle tick unit size.
|
static java.awt.Paint |
DEFAULT_GRIDLINE_PAINT
The default grid line paint.
|
static java.awt.Stroke |
DEFAULT_GRIDLINE_STROKE
The default grid line stroke.
|
protected static java.util.ResourceBundle |
localizationResources
The resourceBundle for the localization.
|
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO
Constructor and Description |
---|
PolarPlot()
Default constructor.
|
PolarPlot(XYDataset dataset,
ValueAxis radiusAxis,
PolarItemRenderer renderer)
Creates a new plot.
|
Modifier and Type | Method and Description |
---|---|
void |
addCornerTextItem(java.lang.String text)
Add text to be displayed in the lower right hand corner and sends a
PlotChangeEvent to all registered listeners. |
protected java.util.List |
buildRadialTicks(java.util.List allTicks)
Create a list of ticks based on the given list and plot properties.
|
protected org.jfree.ui.TextAnchor |
calculateTextAnchor(double angleDegrees)
Calculate the text position for the given degrees.
|
void |
clearCornerTextItems()
Clear the list of corner text items and sends a
PlotChangeEvent
to all registered listeners. |
java.lang.Object |
clone()
Returns a clone of the plot.
|
void |
datasetChanged(DatasetChangeEvent event)
Receives notification of a change to the plot's m_Dataset.
|
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area,
java.awt.geom.Point2D anchor,
PlotState parentState,
PlotRenderingInfo info)
Draws the plot on a Java 2D graphics device (such as the screen or a
printer).
|
protected AxisState |
drawAxis(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
java.awt.geom.Rectangle2D dataArea)
Deprecated.
As of version 1.0.14, this method is no longer used.
|
protected AxisState |
drawAxis(ValueAxis axis,
PolarAxisLocation location,
java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea)
Draws the axis with the specified index.
|
protected void |
drawCornerTextItems(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
Draws the corner text items.
|
protected void |
drawGridlines(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
java.util.List angularTicks,
java.util.List radialTicks)
Draws the gridlines for the plot, if they are visible.
|
boolean |
equals(java.lang.Object obj)
Tests this plot for equality with another object.
|
java.awt.Paint |
getAngleGridlinePaint()
Returns the paint for the grid lines (if any) plotted against the
angular axis.
|
java.awt.Stroke |
getAngleGridlineStroke()
Returns the stroke for the grid-lines (if any) plotted against the
angular axis.
|
java.awt.Font |
getAngleLabelFont()
Returns the font used to display the angle labels.
|
java.awt.Paint |
getAngleLabelPaint()
Returns the paint used to display the angle labels.
|
double |
getAngleOffset()
Returns the offset that is used for all angles.
|
TickUnit |
getAngleTickUnit()
Returns the tick unit that controls the spacing of the angular grid
lines.
|
ValueAxis |
getAxis()
Returns the primary axis for the plot.
|
ValueAxis |
getAxis(int index)
Returns an axis for the plot.
|
int |
getAxisCount()
Returns the number of domain axes.
|
ValueAxis |
getAxisForDataset(int index)
Returns the axis for a dataset.
|
int |
getAxisIndex(ValueAxis axis)
Returns the index of the given axis.
|
PolarAxisLocation |
getAxisLocation()
Returns the location of the primary axis.
|
PolarAxisLocation |
getAxisLocation(int index)
Returns the location for an axis.
|
Range |
getDataRange(ValueAxis axis)
Returns the range for the specified axis.
|
XYDataset |
getDataset()
Returns the primary dataset for the plot.
|
XYDataset |
getDataset(int index)
Returns the dataset with the specified index, if any.
|
int |
getDatasetCount()
Returns the number of datasets.
|
LegendItemCollection |
getFixedLegendItems()
Returns the fixed legend items, if any.
|
int |
getIndexOf(PolarItemRenderer renderer)
Returns the index of the specified renderer, or
-1 if the
renderer is not assigned to this plot. |
LegendItemCollection |
getLegendItems()
Returns the legend items for the plot.
|
int |
getMargin()
Returns the margin around the plot area.
|
double |
getMaxRadius()
Deprecated.
Since 1.0.14, use
getAxis() and call the
getUpperBound() method. |
PlotOrientation |
getOrientation()
Returns the orientation of the plot.
|
java.lang.String |
getPlotType()
Returns the plot type as a string.
|
java.awt.Paint |
getRadiusGridlinePaint()
Returns the paint for the grid lines (if any) plotted against the radius
axis.
|
java.awt.Stroke |
getRadiusGridlineStroke()
Returns the stroke for the grid lines (if any) plotted against the
radius axis.
|
PolarItemRenderer |
getRenderer()
Returns the primary renderer.
|
PolarItemRenderer |
getRenderer(int index)
Returns the renderer at the specified index, if there is one.
|
int |
getSeriesCount()
Deprecated.
Since 1.0.14, grab a reference to the dataset and check
the series count directly.
|
int |
indexOf(XYDataset dataset)
Returns the index of the specified dataset, or
-1 if the
dataset does not belong to the plot. |
boolean |
isAngleGridlinesVisible()
Returns
true if the angular gridlines are visible, and
false otherwise. |
boolean |
isAngleLabelsVisible()
Returns a flag that controls whether or not the angle labels are visible.
|
boolean |
isCounterClockwise()
Get the direction for growing angle degrees.
|
boolean |
isDomainZoomable()
Returns
false always. |
boolean |
isRadiusGridlinesVisible()
Returns
true if the radius axis grid is visible, and
false otherwise. |
boolean |
isRadiusMinorGridlinesVisible()
Return the current value of the flag indicating if radial minor
grid-lines will be drawn or not.
|
boolean |
isRangeZoomable()
Returns
true to indicate that the range axis is zoomable. |
void |
mapDatasetToAxes(int index,
java.util.List axisIndices)
Maps the specified dataset to the axes in the list.
|
void |
mapDatasetToAxis(int index,
int axisIndex)
Maps a dataset to a particular axis.
|
protected java.util.List |
refreshAngleTicks()
Generates a list of tick values for the angular tick marks.
|
void |
removeCornerTextItem(java.lang.String text)
Remove the given text from the list of corner text items and
sends a
PlotChangeEvent to all registered listeners. |
protected void |
render(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
PlotRenderingInfo info)
Draws a representation of the data within the dataArea region, using the
current m_Renderer.
|
void |
rendererChanged(RendererChangeEvent event)
Notifies all registered listeners of a property change.
|
void |
setAngleGridlinePaint(java.awt.Paint paint)
Sets the paint for the grid lines plotted against the angular axis.
|
void |
setAngleGridlineStroke(java.awt.Stroke stroke)
Sets the stroke for the grid lines plotted against the angular axis and
sends a
PlotChangeEvent to all registered listeners. |
void |
setAngleGridlinesVisible(boolean visible)
Sets the flag that controls whether or not the angular grid-lines are
visible.
|
void |
setAngleLabelFont(java.awt.Font font)
Sets the font used to display the angle labels and sends a
PlotChangeEvent to all registered listeners. |
void |
setAngleLabelPaint(java.awt.Paint paint)
Sets the paint used to display the angle labels and sends a
PlotChangeEvent to all registered listeners. |
void |
setAngleLabelsVisible(boolean visible)
Sets the flag that controls whether or not the angle labels are visible,
and sends a
PlotChangeEvent to all registered listeners. |
void |
setAngleOffset(double offset)
Sets the offset that is used for all angles and sends a
PlotChangeEvent to all registered listeners. |
void |
setAngleTickUnit(TickUnit unit)
Sets the tick unit that controls the spacing of the angular grid
lines, and sends a
PlotChangeEvent to all registered listeners. |
void |
setAxis(int index,
ValueAxis axis)
Sets an axis for the plot and sends a
PlotChangeEvent to all
registered listeners. |
void |
setAxis(int index,
ValueAxis axis,
boolean notify)
Sets an axis for the plot and, if requested, sends a
PlotChangeEvent to all registered listeners. |
void |
setAxis(ValueAxis axis)
Sets the primary axis for the plot and sends a
PlotChangeEvent
to all registered listeners. |
void |
setAxisLocation(int index,
PolarAxisLocation location)
Sets the location for an axis and sends a
PlotChangeEvent
to all registered listeners. |
void |
setAxisLocation(int index,
PolarAxisLocation location,
boolean notify)
Sets the axis location for an axis and, if requested, sends a
PlotChangeEvent to all registered listeners. |
void |
setAxisLocation(PolarAxisLocation location)
Sets the location of the primary axis and sends a
PlotChangeEvent to all registered listeners. |
void |
setAxisLocation(PolarAxisLocation location,
boolean notify)
Sets the location of the primary axis and, if requested, sends a
PlotChangeEvent to all registered listeners. |
void |
setCounterClockwise(boolean counterClockwise)
Sets the flag for increasing angle degrees direction.
|
void |
setDataset(int index,
XYDataset dataset)
Sets a dataset for the plot, replacing the existing dataset at the same
index if there is one, and sends a
link PlotChangeEvent to all
registered listeners. |
void |
setDataset(XYDataset dataset)
Sets the primary dataset for the plot, replacing the existing dataset
if there is one, and sends a
link PlotChangeEvent to all
registered listeners. |
void |
setFixedLegendItems(LegendItemCollection items)
Sets the fixed legend items for the plot.
|
void |
setMargin(int margin)
Set the margin around the plot area and sends a
PlotChangeEvent to all registered listeners. |
void |
setRadiusGridlinePaint(java.awt.Paint paint)
Sets the paint for the grid lines plotted against the radius axis and
sends a
PlotChangeEvent to all registered listeners. |
void |
setRadiusGridlineStroke(java.awt.Stroke stroke)
Sets the stroke for the grid lines plotted against the radius axis and
sends a
PlotChangeEvent to all registered listeners. |
void |
setRadiusGridlinesVisible(boolean visible)
Sets the flag that controls whether or not the radius axis grid lines
are visible.
|
void |
setRadiusMinorGridlinesVisible(boolean flag)
Set the flag that determines if radial minor grid-lines will be drawn,
and sends a
PlotChangeEvent to all registered listeners. |
void |
setRenderer(int index,
PolarItemRenderer renderer)
Sets a renderer and sends a
PlotChangeEvent to all
registered listeners. |
void |
setRenderer(int index,
PolarItemRenderer renderer,
boolean notify)
Sets a renderer and, if requested, sends a
PlotChangeEvent to
all registered listeners. |
void |
setRenderer(PolarItemRenderer renderer)
Sets the primary renderer, and notifies all listeners of a change to the
plot.
|
java.awt.Point |
translateToJava2D(double angleDegrees,
double radius,
ValueAxis axis,
java.awt.geom.Rectangle2D dataArea)
Translates a (theta, radius) pair into Java2D coordinates.
|
java.awt.Point |
translateValueThetaRadiusToJava2D(double angleDegrees,
double radius,
java.awt.geom.Rectangle2D dataArea)
Deprecated.
Since 1.0.14, use
translateToJava2D(double, double,
org.jfree.chart.axis.ValueAxis, java.awt.geom.Rectangle2D) instead. |
void |
zoom(double percent)
Zooms the axis ranges by the specified percentage about the anchor point.
|
void |
zoomDomainAxes(double lowerPercent,
double upperPercent,
PlotRenderingInfo state,
java.awt.geom.Point2D source)
This method is required by the
Zoomable interface, but since
the plot does not have any domain axes, it does nothing. |
void |
zoomDomainAxes(double factor,
PlotRenderingInfo state,
java.awt.geom.Point2D source)
This method is required by the
Zoomable interface, but since
the plot does not have any domain axes, it does nothing. |
void |
zoomDomainAxes(double factor,
PlotRenderingInfo state,
java.awt.geom.Point2D source,
boolean useAnchor)
This method is required by the
Zoomable interface, but since
the plot does not have any domain axes, it does nothing. |
void |
zoomRangeAxes(double lowerPercent,
double upperPercent,
PlotRenderingInfo state,
java.awt.geom.Point2D source)
Zooms in on the range axes.
|
void |
zoomRangeAxes(double factor,
PlotRenderingInfo state,
java.awt.geom.Point2D source)
Multiplies the range on the range axis/axes by the specified factor.
|
void |
zoomRangeAxes(double factor,
PlotRenderingInfo info,
java.awt.geom.Point2D source,
boolean useAnchor)
Multiplies the range on the range axis by the specified factor.
|
addChangeListener, annotationChanged, axisChanged, createAndAddEntity, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, handleClick, isNotify, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setNotify, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent
public static final double DEFAULT_ANGLE_TICK_UNIT_SIZE
public static final double DEFAULT_ANGLE_OFFSET
public static final java.awt.Stroke DEFAULT_GRIDLINE_STROKE
public static final java.awt.Paint DEFAULT_GRIDLINE_PAINT
protected static java.util.ResourceBundle localizationResources
public PolarPlot()
public PolarPlot(XYDataset dataset, ValueAxis radiusAxis, PolarItemRenderer renderer)
dataset
- the dataset (null
permitted).radiusAxis
- the radius axis (null
permitted).renderer
- the renderer (null
permitted).public java.lang.String getPlotType()
getPlotType
in class Plot
public ValueAxis getAxis()
null
).setAxis(ValueAxis)
public ValueAxis getAxis(int index)
index
- the axis index.null
possible).setAxis(int, ValueAxis)
public void setAxis(ValueAxis axis)
PlotChangeEvent
to all registered listeners.axis
- the new primary axis (null
permitted).public void setAxis(int index, ValueAxis axis)
PlotChangeEvent
to all
registered listeners.index
- the axis index.axis
- the axis (null
permitted).getAxis(int)
public void setAxis(int index, ValueAxis axis, boolean notify)
PlotChangeEvent
to all registered listeners.index
- the axis index.axis
- the axis (null
permitted).notify
- notify listeners?getAxis(int)
public PolarAxisLocation getAxisLocation()
null
).setAxisLocation(PolarAxisLocation)
public PolarAxisLocation getAxisLocation(int index)
index
- the axis index.null
).setAxisLocation(int, PolarAxisLocation)
public void setAxisLocation(PolarAxisLocation location)
PlotChangeEvent
to all registered listeners.location
- the location (null
not permitted).getAxisLocation()
public void setAxisLocation(PolarAxisLocation location, boolean notify)
PlotChangeEvent
to all registered listeners.location
- the location (null
not permitted).notify
- notify listeners?getAxisLocation()
public void setAxisLocation(int index, PolarAxisLocation location)
PlotChangeEvent
to all registered listeners.index
- the axis index.location
- the location (null
not permitted).getAxisLocation(int)
public void setAxisLocation(int index, PolarAxisLocation location, boolean notify)
PlotChangeEvent
to all registered listeners.index
- the axis index.location
- the location (null
not permitted).notify
- notify listeners?public int getAxisCount()
public XYDataset getDataset()
null
).setDataset(XYDataset)
public XYDataset getDataset(int index)
index
- the dataset index.null
).setDataset(int, XYDataset)
public void setDataset(XYDataset dataset)
link PlotChangeEvent
to all
registered listeners.dataset
- the dataset (null
permitted).getDataset()
public void setDataset(int index, XYDataset dataset)
link PlotChangeEvent
to all
registered listeners.index
- the dataset index.dataset
- the dataset (null
permitted).getDataset(int)
public int getDatasetCount()
public int indexOf(XYDataset dataset)
-1
if the
dataset does not belong to the plot.dataset
- the dataset (null
not permitted).public PolarItemRenderer getRenderer()
null
).setRenderer(PolarItemRenderer)
public PolarItemRenderer getRenderer(int index)
index
- the renderer index.null
).setRenderer(int, PolarItemRenderer)
public void setRenderer(PolarItemRenderer renderer)
null
, no data items will
be drawn for the corresponding dataset.renderer
- the new renderer (null
permitted).getRenderer()
public void setRenderer(int index, PolarItemRenderer renderer)
PlotChangeEvent
to all
registered listeners.index
- the index.renderer
- the renderer.getRenderer(int)
public void setRenderer(int index, PolarItemRenderer renderer, boolean notify)
PlotChangeEvent
to
all registered listeners.index
- the index.renderer
- the renderer.notify
- notify listeners?getRenderer(int)
public TickUnit getAngleTickUnit()
null
).public void setAngleTickUnit(TickUnit unit)
PlotChangeEvent
to all registered listeners.unit
- the tick unit (null
not permitted).public double getAngleOffset()
public void setAngleOffset(double offset)
PlotChangeEvent
to all registered listeners.
This is useful to let 0 degrees be at the north, east, south or west
side of the chart.offset
- The offsetpublic boolean isCounterClockwise()
true
if angle increases counterclockwise,
false
otherwise.public void setCounterClockwise(boolean counterClockwise)
true
for counterclockwise, false
for
clockwise.counterClockwise
- The flag.public boolean isAngleLabelsVisible()
setAngleLabelsVisible(boolean)
public void setAngleLabelsVisible(boolean visible)
PlotChangeEvent
to all registered listeners.visible
- the flag.isAngleLabelsVisible()
public java.awt.Font getAngleLabelFont()
null
).setAngleLabelFont(Font)
public void setAngleLabelFont(java.awt.Font font)
PlotChangeEvent
to all registered listeners.font
- the font (null
not permitted).getAngleLabelFont()
public java.awt.Paint getAngleLabelPaint()
null
).setAngleLabelPaint(Paint)
public void setAngleLabelPaint(java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.paint
- the paint (null
not permitted).public boolean isAngleGridlinesVisible()
true
if the angular gridlines are visible, and
false
otherwise.true
or false
.setAngleGridlinesVisible(boolean)
public void setAngleGridlinesVisible(boolean visible)
If the flag value is changed, a PlotChangeEvent
is sent to all
registered listeners.
visible
- the new value of the flag.isAngleGridlinesVisible()
public java.awt.Stroke getAngleGridlineStroke()
null
).setAngleGridlineStroke(Stroke)
public void setAngleGridlineStroke(java.awt.Stroke stroke)
PlotChangeEvent
to all registered listeners.
If you set this to null
, no grid lines will be drawn.
stroke
- the stroke (null
permitted).getAngleGridlineStroke()
public java.awt.Paint getAngleGridlinePaint()
null
).setAngleGridlinePaint(Paint)
public void setAngleGridlinePaint(java.awt.Paint paint)
If you set this to null
, no grid lines will be drawn.
paint
- the paint (null
permitted).getAngleGridlinePaint()
public boolean isRadiusGridlinesVisible()
true
if the radius axis grid is visible, and
false
otherwise.true
or false
.setRadiusGridlinesVisible(boolean)
public void setRadiusGridlinesVisible(boolean visible)
If the flag value is changed, a PlotChangeEvent
is sent to all
registered listeners.
visible
- the new value of the flag.isRadiusGridlinesVisible()
public java.awt.Stroke getRadiusGridlineStroke()
null
).setRadiusGridlineStroke(Stroke)
public void setRadiusGridlineStroke(java.awt.Stroke stroke)
PlotChangeEvent
to all registered listeners.
If you set this to null
, no grid lines will be drawn.
stroke
- the stroke (null
permitted).getRadiusGridlineStroke()
public java.awt.Paint getRadiusGridlinePaint()
null
).setRadiusGridlinePaint(Paint)
public void setRadiusGridlinePaint(java.awt.Paint paint)
PlotChangeEvent
to all registered listeners.
If you set this to null
, no grid lines will be drawn.
paint
- the paint (null
permitted).getRadiusGridlinePaint()
public boolean isRadiusMinorGridlinesVisible()
true
if radial minor grid-lines are drawn.public void setRadiusMinorGridlinesVisible(boolean flag)
PlotChangeEvent
to all registered listeners.flag
- true
to draw the radial minor grid-lines,
false
to hide them.public int getMargin()
public void setMargin(int margin)
PlotChangeEvent
to all registered listeners.margin
- The new margin in pixels.public LegendItemCollection getFixedLegendItems()
null
).setFixedLegendItems(LegendItemCollection)
public void setFixedLegendItems(LegendItemCollection items)
null
if you prefer the legend items to be created
automatically.items
- the legend items (null
permitted).getFixedLegendItems()
public void addCornerTextItem(java.lang.String text)
PlotChangeEvent
to all registered listeners.text
- the text to display (null
not permitted).removeCornerTextItem(String)
public void removeCornerTextItem(java.lang.String text)
PlotChangeEvent
to all registered listeners.text
- the text to remove (null
ignored).addCornerTextItem(String)
public void clearCornerTextItems()
PlotChangeEvent
to all registered listeners.protected java.util.List refreshAngleTicks()
NumberTick
instances.protected org.jfree.ui.TextAnchor calculateTextAnchor(double angleDegrees)
angleDegrees
- the angle in degrees.public void mapDatasetToAxis(int index, int axisIndex)
index
- the dataset index (zero-based).axisIndex
- the axis index.public void mapDatasetToAxes(int index, java.util.List axisIndices)
index
- the dataset index (zero-based).axisIndices
- the axis indices (null
permitted).public ValueAxis getAxisForDataset(int index)
index
- the dataset index.public int getAxisIndex(ValueAxis axis)
axis
- the axis.public int getIndexOf(PolarItemRenderer renderer)
-1
if the
renderer is not assigned to this plot.renderer
- the renderer (null
permitted).public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.awt.geom.Point2D anchor, PlotState parentState, PlotRenderingInfo info)
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.
protected void drawCornerTextItems(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)
g2
- the drawing surface.area
- the area.protected AxisState drawAxis(ValueAxis axis, PolarAxisLocation location, java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea)
axis
- the axis.location
- the axis location.g2
- the graphics target.plotArea
- the plot area.protected void render(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, PlotRenderingInfo info)
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).protected void drawGridlines(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, java.util.List angularTicks, java.util.List radialTicks)
g2
- the graphics device.dataArea
- the data area.angularTicks
- the ticks for the angular axis.radialTicks
- the ticks for the radial axis.protected java.util.List buildRadialTicks(java.util.List allTicks)
allTicks
- A list of all available ticks for the primary axis.
null
not permitted.public void zoom(double percent)
public Range getDataRange(ValueAxis axis)
getDataRange
in interface ValueAxisPlot
axis
- the axis.public void datasetChanged(DatasetChangeEvent event)
The axis ranges are updated if necessary.
datasetChanged
in interface DatasetChangeListener
datasetChanged
in class Plot
event
- information about the event (not used here).public void rendererChanged(RendererChangeEvent event)
One source of property change events is the plot's m_Renderer.
rendererChanged
in interface RendererChangeListener
event
- information about the property change.public LegendItemCollection getLegendItems()
getLegendItems
in interface LegendItemSource
getLegendItems
in class Plot
public boolean equals(java.lang.Object obj)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public void zoomDomainAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source)
Zoomable
interface, but since
the plot does not have any domain axes, it does nothing.zoomDomainAxes
in interface Zoomable
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).Zoomable.zoomRangeAxes(double, PlotRenderingInfo, Point2D)
public void zoomDomainAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source, boolean useAnchor)
Zoomable
interface, but since
the plot does not have any domain axes, it does nothing.zoomDomainAxes
in interface Zoomable
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).useAnchor
- use source point as zoom anchor?Zoomable.zoomRangeAxes(double, PlotRenderingInfo, Point2D, boolean)
public void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, java.awt.geom.Point2D source)
Zoomable
interface, but since
the plot does not have any domain axes, it does nothing.zoomDomainAxes
in interface Zoomable
lowerPercent
- the new lower bound.upperPercent
- the new upper bound.state
- the plot state.source
- the source point (in Java2D coordinates).Zoomable.zoomRangeAxes(double, double, PlotRenderingInfo, Point2D)
public void zoomRangeAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source)
zoomRangeAxes
in interface Zoomable
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).Zoomable.zoomDomainAxes(double, PlotRenderingInfo, Point2D)
public void zoomRangeAxes(double factor, PlotRenderingInfo info, java.awt.geom.Point2D source, boolean useAnchor)
zoomRangeAxes
in interface Zoomable
factor
- the zoom factor.info
- the plot rendering info.source
- the source point (in Java2D space).useAnchor
- use source point as zoom anchor?zoomDomainAxes(double, PlotRenderingInfo, Point2D, boolean)
public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, java.awt.geom.Point2D source)
zoomRangeAxes
in interface Zoomable
lowerPercent
- the new lower bound.upperPercent
- the new upper bound.state
- the plot state.source
- the source point (in Java2D coordinates).Zoomable.zoomDomainAxes(double, double, PlotRenderingInfo, Point2D)
public boolean isDomainZoomable()
false
always.isDomainZoomable
in interface Zoomable
false
always.Zoomable.isRangeZoomable()
public boolean isRangeZoomable()
true
to indicate that the range axis is zoomable.isRangeZoomable
in interface Zoomable
true
.Zoomable.isDomainZoomable()
public PlotOrientation getOrientation()
getOrientation
in interface Zoomable
public java.awt.Point translateToJava2D(double angleDegrees, double radius, ValueAxis axis, java.awt.geom.Rectangle2D dataArea)
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.axis
- the axis.dataArea
- the data area.public java.awt.Point translateValueThetaRadiusToJava2D(double angleDegrees, double radius, java.awt.geom.Rectangle2D dataArea)
translateToJava2D(double, double,
org.jfree.chart.axis.ValueAxis, java.awt.geom.Rectangle2D)
instead.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.public double getMaxRadius()
getAxis()
and call the
getUpperBound() method.public int getSeriesCount()
null
, the method returns 0.protected AxisState drawAxis(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, java.awt.geom.Rectangle2D dataArea)
g2
- the graphics device.plotArea
- the plot area.dataArea
- the data area.