public class PolarPlot extends Plot implements ValueAxisPlot, Zoomable, RendererChangeListener, Cloneable, 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 Paint |
DEFAULT_GRIDLINE_PAINT
The default grid line paint.
|
static Stroke |
DEFAULT_GRIDLINE_STROKE
The default grid line stroke.
|
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(String text)
Add text to be displayed in the lower right hand corner and sends a
PlotChangeEvent to all registered listeners. |
void |
clearCornerTextItems()
Clear the list of corner text items and sends a
PlotChangeEvent
to all registered listeners. |
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(Graphics2D g2,
Rectangle2D area,
Point2D anchor,
PlotState parentState,
PlotRenderingInfo info)
Draws the plot on a Java 2D graphics device (such as the screen or a
printer).
|
boolean |
equals(Object obj)
Tests this plot for equality with another object.
|
Paint |
getAngleGridlinePaint()
Returns the paint for the grid lines (if any) plotted against the
angular axis.
|
Stroke |
getAngleGridlineStroke()
Returns the stroke for the grid-lines (if any) plotted against the
angular axis.
|
Font |
getAngleLabelFont()
Returns the font used to display the angle labels.
|
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.
|
String |
getPlotType()
Returns the plot type as a string.
|
Paint |
getRadiusGridlinePaint()
Returns the paint for the grid lines (if any) plotted against the radius
axis.
|
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,
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.
|
void |
removeCornerTextItem(String text)
Remove the given text from the list of corner text items and
sends a
PlotChangeEvent to all registered listeners. |
void |
rendererChanged(RendererChangeEvent event)
Notifies all registered listeners of a property change.
|
void |
setAngleGridlinePaint(Paint paint)
Sets the paint for the grid lines plotted against the angular axis.
|
void |
setAngleGridlineStroke(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(Font font)
Sets the font used to display the angle labels and sends a
PlotChangeEvent to all registered listeners. |
void |
setAngleLabelPaint(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(Paint paint)
Sets the paint for the grid lines plotted against the radius axis and
sends a
PlotChangeEvent to all registered listeners. |
void |
setRadiusGridlineStroke(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.
|
Point |
translateToJava2D(double angleDegrees,
double radius,
ValueAxis axis,
Rectangle2D dataArea)
Translates a (theta, radius) pair into Java2D coordinates.
|
Point |
translateValueThetaRadiusToJava2D(double angleDegrees,
double radius,
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,
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,
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,
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,
Point2D source)
Zooms in on the range axes.
|
void |
zoomRangeAxes(double factor,
PlotRenderingInfo state,
Point2D source)
Multiplies the range on the range axis/axes by the specified factor.
|
void |
zoomRangeAxes(double factor,
PlotRenderingInfo info,
Point2D source,
boolean useAnchor)
Multiplies the range on the range axis by the specified factor.
|
addChangeListener, annotationChanged, axisChanged, drawBackground, drawBackgroundImage, drawOutline, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRootPlot, handleClick, isNotify, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, 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 Stroke DEFAULT_GRIDLINE_STROKE
public static final Paint DEFAULT_GRIDLINE_PAINT
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 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 Font getAngleLabelFont()
null
).setAngleLabelFont(Font)
public void setAngleLabelFont(Font font)
PlotChangeEvent
to all registered listeners.font
- the font (null
not permitted).getAngleLabelFont()
public Paint getAngleLabelPaint()
null
).setAngleLabelPaint(Paint)
public void setAngleLabelPaint(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 Stroke getAngleGridlineStroke()
null
).setAngleGridlineStroke(Stroke)
public void setAngleGridlineStroke(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 Paint getAngleGridlinePaint()
null
).setAngleGridlinePaint(Paint)
public void setAngleGridlinePaint(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 Stroke getRadiusGridlineStroke()
null
).setRadiusGridlineStroke(Stroke)
public void setRadiusGridlineStroke(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 Paint getRadiusGridlinePaint()
null
).setRadiusGridlinePaint(Paint)
public void setRadiusGridlinePaint(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(String text)
PlotChangeEvent
to all registered listeners.text
- the text to display (null
not permitted).removeCornerTextItem(String)
public void removeCornerTextItem(String text)
PlotChangeEvent
to all registered listeners.text
- the text to remove (null
ignored).addCornerTextItem(String)
public void clearCornerTextItems()
PlotChangeEvent
to all registered listeners.public void mapDatasetToAxis(int index, int axisIndex)
index
- the dataset index (zero-based).axisIndex
- the axis index.public void mapDatasetToAxes(int index, 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(Graphics2D g2, Rectangle2D area, 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.
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(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class Plot
CloneNotSupportedException
- this can occur if some component of
the plot cannot be cloned.public void zoomDomainAxes(double factor, PlotRenderingInfo state, 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, 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, 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, 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, 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, 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 Point translateToJava2D(double angleDegrees, double radius, ValueAxis axis, 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 Point translateValueThetaRadiusToJava2D(double angleDegrees, double radius, 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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics