org.jfree.chart

Class 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:

and replaces them with versions more appropriate for PolarPlot.
Constructor Summary
PolarChartPanel(JFreeChart chart)
Constructs a JFreeChart panel.
PolarChartPanel(JFreeChart chart, boolean useBuffer)
Creates a new panel.
Method Summary
voidactionPerformed(ActionEvent event)
Handles action events generated by the popup menu.
protected JPopupMenucreatePopupMenu(boolean properties, boolean save, boolean print, boolean zoom)
Creates a popup menu for the panel.
voidsetChart(JFreeChart chart)
Sets the chart that is displayed in the panel.

Constructor Detail

PolarChartPanel

public PolarChartPanel(JFreeChart chart)
Constructs a JFreeChart panel.

Parameters: chart the chart.

PolarChartPanel

public PolarChartPanel(JFreeChart chart, boolean useBuffer)
Creates a new panel.

Parameters: chart the chart. useBuffer buffered?

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Handles action events generated by the popup menu.

Parameters: event the event.

createPopupMenu

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.

setChart

public void setChart(JFreeChart chart)
Sets the chart that is displayed in the panel.

Parameters: chart The chart.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.