public class

PolarChartPanel

extends ChartPanel
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JPanel
           ↳ org.jfree.chart.ChartPanel
             ↳ org.jfree.chart.PolarChartPanel

Class Overview

PolarChartPanel is the top level object for using the PolarPlot. Since this class has a JPanel in the inheritance hierarchy, one uses this class to integrate the Polar plot into their application.

The main modification to ChartPanel is the popup menu. It removes ChartPanel's versions of:

  • Zoom In
  • Zoom Out
  • Auto Range
and replaces them with versions more appropriate for PolarPlot.

Summary

[Expand]
Inherited Constants
From class org.jfree.chart.ChartPanel
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
From interface java.awt.print.Printable
[Expand]
Inherited Fields
From class org.jfree.chart.ChartPanel
From class javax.swing.JComponent
Public Constructors
PolarChartPanel(JFreeChart chart)
Constructs a JFreeChart panel.
PolarChartPanel(JFreeChart chart, boolean useBuffer)
Creates a new panel.
Public Methods
void actionPerformed(ActionEvent event)
Handles action events generated by the popup menu.
void setChart(JFreeChart chart)
Sets the chart that is displayed in the panel.
Protected Methods
JPopupMenu createPopupMenu(boolean properties, boolean save, boolean print, boolean zoom)
Creates a popup menu for the panel.
[Expand]
Inherited Methods
From class org.jfree.chart.ChartPanel
From class javax.swing.JPanel
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.event.ActionListener
From interface java.awt.event.MouseListener
From interface java.awt.event.MouseMotionListener
From interface java.awt.image.ImageObserver
From interface java.awt.print.Printable
From interface javax.accessibility.Accessible
From interface org.jfree.chart.event.ChartChangeListener
From interface org.jfree.chart.event.ChartProgressListener
From interface org.jfree.chart.event.OverlayChangeListener

Public Constructors

public PolarChartPanel (JFreeChart chart)

Constructs a JFreeChart panel.

Parameters
chart the chart.

public PolarChartPanel (JFreeChart chart, boolean useBuffer)

Creates a new panel.

Parameters
chart the chart.
useBuffer buffered?

Public Methods

public void actionPerformed (ActionEvent event)

Handles action events generated by the popup menu.

Parameters
event the event.

public void setChart (JFreeChart chart)

Sets the chart that is displayed in the panel.

Parameters
chart The chart.

Protected Methods

protected JPopupMenu createPopupMenu (boolean properties, boolean save, boolean print, boolean zoom)

Creates a popup menu for the panel.

Parameters
properties include a menu item for the chart property editor.
save include a menu item for saving the chart.
print include a menu item for printing the chart.
zoom include menu items for zooming.
Returns
  • The popup menu.