Class DemoPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DemoPanel extends JPanel
The base class for panels created by demo applications. Some demos will subclass to add extra controls in addition to the main Chart3DPanel.
See Also:
  • Constructor Details

    • DemoPanel

      public DemoPanel(LayoutManager layout)
      Creates a new instance.
      Parameters:
      layout - the layout manager.
  • Method Details

    • getChartPanel

      public org.jfree.chart3d.Chart3DPanel getChartPanel()
      Returns the chart panel for this demo panel. In the case where there are multiple chart panels, this method will return the first one.
      Returns:
      The chart panel (possibly null).
    • getChartPanels

      public List<org.jfree.chart3d.Chart3DPanel> getChartPanels()
      Returns the Chart3DPanel from the demo panel.
      Returns:
      The Chart3DPanel.
    • setChartPanel

      public void setChartPanel(org.jfree.chart3d.Chart3DPanel panel)
      Sets the chart panel that is displayed within this demo panel (for the case where there is only one chart panel).
      Parameters:
      panel - the panel.
    • addChartPanel

      public void addChartPanel(org.jfree.chart3d.Chart3DPanel panel)
      Adds the Chart3DPanel for this demo panel. This can be accessed by code that wants to do something to the chart.
      Parameters:
      panel - the panel.