| java.lang.Object org.jfree.chart.plot.Plot org.jfree.chart.plot.PolarPlot
Method Summary | |
public void | addCornerTextItem(String text) Add text to be displayed in the lower right hand corner and sends a
PlotChangeEvent to all registered listeners. | public void | clearCornerTextItems() Clear the list of corner text items and sends a
PlotChangeEvent to all registered listeners. | public Object | clone() Returns a clone of the plot. | public void | datasetChanged(DatasetChangeEvent event) Receives notification of a change to the plot's m_Dataset. | public 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).
This plot relies on a
PolarItemRenderer to draw each
item in the plot. | protected AxisState | drawAxis(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea) A utility method for drawing the axes.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: dataArea - the data area. | protected void | drawCornerTextItems(Graphics2D g2, Rectangle2D area) Draws the corner text items. | protected void | drawGridlines(Graphics2D g2, Rectangle2D dataArea, List angularTicks, List radialTicks) Draws the gridlines for the plot, if they are visible. | public boolean | equals(Object obj) Tests this plot for equality with another object.
Parameters: obj - the object (null permitted). | public Paint | getAngleGridlinePaint() Returns the paint for the grid lines (if any) plotted against the
angular axis. | public Stroke | getAngleGridlineStroke() Returns the stroke for the grid-lines (if any) plotted against the
angular axis. | public Font | getAngleLabelFont() Returns the font used to display the angle labels. | public Paint | getAngleLabelPaint() Returns the paint used to display the angle labels. | public ValueAxis | getAxis() Returns the axis for the plot. | public Range | getDataRange(ValueAxis axis) Returns the range for the specified axis.
Parameters: axis - the axis. | public XYDataset | getDataset() Returns the primary dataset for the plot. | public LegendItemCollection | getLegendItems() Returns the legend items for the plot. | public double | getMaxRadius() Returns the upper bound of the radius axis. | public PlotOrientation | getOrientation() Returns the orientation of the plot. | public String | getPlotType() Returns the plot type as a string. | public Paint | getRadiusGridlinePaint() Returns the paint for the grid lines (if any) plotted against the radius
axis. | public Stroke | getRadiusGridlineStroke() Returns the stroke for the grid lines (if any) plotted against the
radius axis. | public PolarItemRenderer | getRenderer() Returns the item renderer. | public int | getSeriesCount() Returns the number of series in the dataset for this plot. | public boolean | isAngleGridlinesVisible() Returns true if the angular gridlines are visible, and
false otherwise. | public boolean | isAngleLabelsVisible() Returns a flag that controls whether or not the angle labels are visible. | public boolean | isDomainZoomable() Returns false always. | public boolean | isRadiusGridlinesVisible() Returns true if the radius axis grid is visible, and
false otherwise. | public boolean | isRangeZoomable() Returns true to indicate that the range axis is zoomable. | public void | removeCornerTextItem(String text) Remove the given text from the list of corner text items and
sends a
PlotChangeEvent to all registered listeners. | protected void | render(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info) Draws a representation of the data within the dataArea region, using the
current m_Renderer. | public void | rendererChanged(RendererChangeEvent event) Notifies all registered listeners of a property change. | public void | setAngleGridlinePaint(Paint paint) Sets the paint for the grid lines plotted against the angular axis. | public void | setAngleGridlineStroke(Stroke stroke) Sets the stroke for the grid lines plotted against the angular axis and
sends a
PlotChangeEvent to all registered listeners. | public void | setAngleGridlinesVisible(boolean visible) Sets the flag that controls whether or not the angular grid-lines are
visible. | public void | setAngleLabelFont(Font font) Sets the font used to display the angle labels and sends a
PlotChangeEvent to all registered listeners. | public void | setAngleLabelPaint(Paint paint) Sets the paint used to display the angle labels and sends a
PlotChangeEvent to all registered listeners. | public 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. | public void | setAxis(ValueAxis axis) Sets the axis for the plot and sends a
PlotChangeEvent to all
registered listeners. | public void | setDataset(XYDataset dataset) Sets the dataset for the plot, replacing the existing dataset if there
is one. | public void | setRadiusGridlinePaint(Paint paint) Sets the paint for the grid lines plotted against the radius axis and
sends a
PlotChangeEvent to all registered listeners. | public void | setRadiusGridlineStroke(Stroke stroke) Sets the stroke for the grid lines plotted against the radius axis and
sends a
PlotChangeEvent to all registered listeners. | public void | setRadiusGridlinesVisible(boolean visible) Sets the flag that controls whether or not the radius axis grid lines
are visible. | public void | setRenderer(PolarItemRenderer renderer) Sets the item renderer, and notifies all listeners of a change to the
plot. | public Point | translateValueThetaRadiusToJava2D(double angleDegrees, double radius, Rectangle2D dataArea) Translates a (theta, radius) pair into Java2D coordinates. | public void | zoom(double percent) Zooms the axis ranges by the specified percentage about the anchor point. | public 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. | public 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. | public void | zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source) Multiplies the range on the range axis/axes by the specified factor. | public void | zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source) Zooms in on the range axes. |
DEFAULT_GRIDLINE_PAINT | final public static Paint DEFAULT_GRIDLINE_PAINT(Code) | | The default grid line paint.
|
DEFAULT_GRIDLINE_STROKE | final public static Stroke DEFAULT_GRIDLINE_STROKE(Code) | | The default grid line stroke.
|
localizationResources | protected static ResourceBundle localizationResources(Code) | | The resourceBundle for the localization.
|
PolarPlot | public PolarPlot()(Code) | | Default constructor.
|
PolarPlot | public PolarPlot(XYDataset dataset, ValueAxis radiusAxis, PolarItemRenderer renderer)(Code) | | Creates a new plot.
Parameters: dataset - the dataset (null permitted). Parameters: radiusAxis - the radius axis (null permitted). Parameters: renderer - the renderer (null permitted). |
datasetChanged | public void datasetChanged(DatasetChangeEvent event)(Code) | | Receives notification of a change to the plot's m_Dataset.
The axis ranges are updated if necessary.
Parameters: event - information about the event (not used here). |
draw | public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code) | | 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.
Parameters: g2 - the graphics device. Parameters: area - the area within which the plot (including axes and labels) should be drawn. Parameters: anchor - the anchor point (null permitted). Parameters: parentState - ignored. Parameters: info - collects chart drawing information (null permitted). |
drawAxis | protected AxisState drawAxis(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea)(Code) | | A utility method for drawing the axes.
Parameters: g2 - the graphics device. Parameters: plotArea - the plot area. Parameters: dataArea - the data area. A map containing the axis states. |
drawCornerTextItems | protected void drawCornerTextItems(Graphics2D g2, Rectangle2D area)(Code) | | Draws the corner text items.
Parameters: g2 - the drawing surface. Parameters: area - the area. |
drawGridlines | protected void drawGridlines(Graphics2D g2, Rectangle2D dataArea, List angularTicks, List radialTicks)(Code) | | Draws the gridlines for the plot, if they are visible.
Parameters: g2 - the graphics device. Parameters: dataArea - the data area. Parameters: angularTicks - the ticks for the angular axis. Parameters: radialTicks - the ticks for the radial axis. |
equals | public boolean equals(Object obj)(Code) | | Tests this plot for equality with another object.
Parameters: obj - the object (null permitted). true or false . |
getDataRange | public Range getDataRange(ValueAxis axis)(Code) | | Returns the range for the specified axis.
Parameters: axis - the axis. The range. |
getLegendItems | public LegendItemCollection getLegendItems()(Code) | | 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.
The legend items. |
getMaxRadius | public double getMaxRadius()(Code) | | Returns the upper bound of the radius axis.
The upper bound. |
getOrientation | public PlotOrientation getOrientation()(Code) | | Returns the orientation of the plot.
The orientation. |
getPlotType | public String getPlotType()(Code) | | Returns the plot type as a string.
A short string describing the type of plot. |
getSeriesCount | public int getSeriesCount()(Code) | | Returns the number of series in the dataset for this plot. If the
dataset is null , the method returns 0.
The series count. |
isDomainZoomable | public boolean isDomainZoomable()(Code) | | Returns false always.
false always. |
isRangeZoomable | public boolean isRangeZoomable()(Code) | | Returns true to indicate that the range axis is zoomable.
true . |
render | protected void render(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info)(Code) | | Draws a representation of the data within the dataArea region, using the
current m_Renderer.
Parameters: g2 - the graphics device. Parameters: dataArea - the region in which the data is to be drawn. Parameters: info - an optional object for collection dimension information (null permitted). |
rendererChanged | public void rendererChanged(RendererChangeEvent event)(Code) | | Notifies all registered listeners of a property change.
One source of property change events is the plot's m_Renderer.
Parameters: event - information about the property change. |
setAngleGridlinePaint | public void setAngleGridlinePaint(Paint paint)(Code) | | Sets the paint for the grid lines plotted against the angular axis.
If you set this to null , no grid lines will be drawn.
Parameters: paint - the paint (null permitted). See Also: PolarPlot.getAngleGridlinePaint() |
setAngleGridlineStroke | public void setAngleGridlineStroke(Stroke stroke)(Code) | | 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.
Parameters: stroke - the stroke (null permitted). See Also: PolarPlot.getAngleGridlineStroke() |
setAngleGridlinesVisible | public void setAngleGridlinesVisible(boolean visible)(Code) | | 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.
Parameters: visible - the new value of the flag. See Also: PolarPlot.isAngleGridlinesVisible() |
setAngleLabelPaint | public void setAngleLabelPaint(Paint paint)(Code) | | Sets the paint used to display the angle labels and sends a
PlotChangeEvent to all registered listeners.
Parameters: paint - the paint (null not permitted). |
setAngleLabelsVisible | public void setAngleLabelsVisible(boolean visible)(Code) | | Sets the flag that controls whether or not the angle labels are visible,
and sends a
PlotChangeEvent to all registered listeners.
Parameters: visible - the flag. See Also: PolarPlot.isAngleLabelsVisible() |
setAxis | public void setAxis(ValueAxis axis)(Code) | | Sets the axis for the plot and sends a
PlotChangeEvent to all
registered listeners.
Parameters: axis - the new axis (null permitted). |
setDataset | public void setDataset(XYDataset dataset)(Code) | | Sets the dataset for the plot, replacing the existing dataset if there
is one.
Parameters: dataset - the dataset (null permitted). See Also: PolarPlot.getDataset() |
setRadiusGridlinePaint | public void setRadiusGridlinePaint(Paint paint)(Code) | | 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.
Parameters: paint - the paint (null permitted). See Also: PolarPlot.getRadiusGridlinePaint() |
setRadiusGridlineStroke | public void setRadiusGridlineStroke(Stroke stroke)(Code) | | 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.
Parameters: stroke - the stroke (null permitted). See Also: PolarPlot.getRadiusGridlineStroke() |
setRadiusGridlinesVisible | public void setRadiusGridlinesVisible(boolean visible)(Code) | | 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.
Parameters: visible - the new value of the flag. See Also: PolarPlot.isRadiusGridlinesVisible() |
setRenderer | public void setRenderer(PolarItemRenderer renderer)(Code) | | 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.
Parameters: renderer - the new renderer (null permitted). See Also: PolarPlot.getRenderer() |
translateValueThetaRadiusToJava2D | public Point translateValueThetaRadiusToJava2D(double angleDegrees, double radius, Rectangle2D dataArea)(Code) | | 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.
Parameters: angleDegrees - the angle in degrees. Parameters: radius - the radius. Parameters: dataArea - the data area. A point in Java2D space. |
zoom | public void zoom(double percent)(Code) | | Zooms the axis ranges by the specified percentage about the anchor point.
Parameters: percent - the amount of the zoom. |
zoomDomainAxes | public void zoomDomainAxes(double factor, PlotRenderingInfo state, Point2D source)(Code) | | This method is required by the
Zoomable interface, but since
the plot does not have any domain axes, it does nothing.
Parameters: factor - the zoom factor. Parameters: state - the plot state. Parameters: source - the source point (in Java2D coordinates). |
zoomDomainAxes | public void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)(Code) | | This method is required by the
Zoomable interface, but since
the plot does not have any domain axes, it does nothing.
Parameters: lowerPercent - the new lower bound. Parameters: upperPercent - the new upper bound. Parameters: state - the plot state. Parameters: source - the source point (in Java2D coordinates). |
zoomRangeAxes | public void zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source)(Code) | | Multiplies the range on the range axis/axes by the specified factor.
Parameters: factor - the zoom factor. Parameters: state - the plot state. Parameters: source - the source point (in Java2D coordinates). |
zoomRangeAxes | public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)(Code) | | Zooms in on the range axes.
Parameters: lowerPercent - the new lower bound. Parameters: upperPercent - the new upper bound. Parameters: state - the plot state. Parameters: source - the source point (in Java2D coordinates). |
Methods inherited from org.jfree.chart.plot.Plot | public void addChangeListener(PlotChangeListener listener)(Code)(Java Doc) public void axisChanged(AxisChangeEvent event)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void datasetChanged(DatasetChangeEvent event)(Code)(Java Doc) abstract public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)(Code)(Java Doc) public void drawBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public void drawBackgroundImage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) protected void drawNoDataMessage(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public void drawOutline(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected void fillBackground(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) protected void fillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)(Code)(Java Doc) public float getBackgroundAlpha()(Code)(Java Doc) public Image getBackgroundImage()(Code)(Java Doc) public int getBackgroundImageAlignment()(Code)(Java Doc) public float getBackgroundImageAlpha()(Code)(Java Doc) public Paint getBackgroundPaint()(Code)(Java Doc) public DatasetGroup getDatasetGroup()(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public float getForegroundAlpha()(Code)(Java Doc) public RectangleInsets getInsets()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public String getNoDataMessage()(Code)(Java Doc) public Font getNoDataMessageFont()(Code)(Java Doc) public Paint getNoDataMessagePaint()(Code)(Java Doc) public Paint getOutlinePaint()(Code)(Java Doc) public Stroke getOutlineStroke()(Code)(Java Doc) public Plot getParent()(Code)(Java Doc) abstract public String getPlotType()(Code)(Java Doc) protected double getRectX(double x, double w1, double w2, RectangleEdge edge)(Code)(Java Doc) protected double getRectY(double y, double h1, double h2, RectangleEdge edge)(Code)(Java Doc) public Plot getRootPlot()(Code)(Java Doc) public void handleClick(int x, int y, PlotRenderingInfo info)(Code)(Java Doc) public boolean isOutlineVisible()(Code)(Java Doc) public boolean isSubplot()(Code)(Java Doc) public void markerChanged(MarkerChangeEvent event)(Code)(Java Doc) public void notifyListeners(PlotChangeEvent event)(Code)(Java Doc) public void removeChangeListener(PlotChangeListener listener)(Code)(Java Doc) public static RectangleEdge resolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc) public static RectangleEdge resolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)(Code)(Java Doc) public void setBackgroundAlpha(float alpha)(Code)(Java Doc) public void setBackgroundImage(Image image)(Code)(Java Doc) public void setBackgroundImageAlignment(int alignment)(Code)(Java Doc) public void setBackgroundImageAlpha(float alpha)(Code)(Java Doc) public void setBackgroundPaint(Paint paint)(Code)(Java Doc) protected void setDatasetGroup(DatasetGroup group)(Code)(Java Doc) public void setDrawingSupplier(DrawingSupplier supplier)(Code)(Java Doc) public void setForegroundAlpha(float alpha)(Code)(Java Doc) public void setInsets(RectangleInsets insets)(Code)(Java Doc) public void setInsets(RectangleInsets insets, boolean notify)(Code)(Java Doc) public void setNoDataMessage(String message)(Code)(Java Doc) public void setNoDataMessageFont(Font font)(Code)(Java Doc) public void setNoDataMessagePaint(Paint paint)(Code)(Java Doc) public void setOutlinePaint(Paint paint)(Code)(Java Doc) public void setOutlineStroke(Stroke stroke)(Code)(Java Doc) public void setOutlineVisible(boolean visible)(Code)(Java Doc) public void setParent(Plot parent)(Code)(Java Doc) public void zoom(double percent)(Code)(Java Doc)
|
|
|