Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
JPanel
org.jfree.chart.ChartPanel
org.jfree.chart.PolarChartPanel
public class PolarChartPanel
extends ChartPanel
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
PolarPlot
.
Field Summary |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
protected JPopupMenu |
|
void |
|
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 void actionPerformed(ActionEvent event)
Handles action events generated by the popup menu.
- Overrides:
- actionPerformed in interface ChartPanel
- Parameters:
event
- the event.
protected JPopupMenu createPopupMenu(boolean properties, boolean save, boolean print, boolean zoom)
Creates a popup menu for the panel.
- Overrides:
- createPopupMenu in interface ChartPanel
- Parameters:
properties
- include a menu item for the chart property editor.save
- include a menu item for saving the chart.zoom
- include menu items for zooming.
- Returns:
- The popup menu.
public void setChart(JFreeChart chart)
Sets the chart that is displayed in the panel.
- Overrides:
- setChart in interface ChartPanel
- Parameters:
chart
- The chart.