Class ChartPropertyEditPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ChartPropertyEditPanel
extends JPanel
implements ActionListener
A panel for editing chart properties (includes subpanels for the title, legend and plot).
See Also:
Serialized Form
  • Constructor Details

    • ChartPropertyEditPanel

      public ChartPropertyEditPanel​(JFreeChart chart)
      Standard constructor - the property panel is made up of a number of sub-panels that are displayed in the tabbed pane.
      Parameters:
      chart - the chart, whichs properties should be changed.
  • Method Details

    • getTitlePropertyEditPanel

      public TitlePropertyEditPanel getTitlePropertyEditPanel()
      Deprecated.
      returns null, until the title panel is implemented properly.
      Returns a reference to the title property sub-panel.
      Returns:
      a reference to the title property sub-panel.
    • getLegendPropertyEditPanel

      public org.jfree.chart.ui.LegendPropertyEditPanel getLegendPropertyEditPanel()
      Returns a reference to the legend property sub-panel.
      Returns:
      a reference to the legend property sub-panel.
    • getPlotPropertyEditPanel

      public PlotPropertyEditPanel getPlotPropertyEditPanel()
      Returns a reference to the plot property sub-panel.
      Returns:
      a reference to the plot property sub-panel.
    • getAntiAlias

      public boolean getAntiAlias()
      Returns the current setting of the anti-alias flag.
      Returns:
      true if anti-aliasing is enabled.
    • getBackgroundPaint

      public Paint getBackgroundPaint()
      Returns the current background paint.
      Returns:
      the current background paint.
    • actionPerformed

      public void actionPerformed​(ActionEvent event)
      Handles user interactions with the panel.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - a BackgroundPaint action.
    • updateChartProperties

      public void updateChartProperties​(JFreeChart chart)
      Updates the properties of a chart to match the properties defined on the panel.
      Parameters:
      chart - the chart.