Class ScriptableChart

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener
Direct Known Subclasses:
AbstractXYChart, CategoryChart, PieChart

public abstract class ScriptableChart extends AbstractJ2DShape
A chart that can be customized and controlled through scripting at runtime
  • Constructor Details

    • ScriptableChart

      public ScriptableChart()
  • Method Details

    • applyConfigureChartScript

      public void applyConfigureChartScript(org.jfree.chart.JFreeChart chart)
      Applies the specified script to configure the provided JFreeChart Object.
      Parameters:
      chart - the JFreeChart object to configure with the script
    • isScriptEnabled

      public boolean isScriptEnabled()
    • setScriptEnabled

      public void setScriptEnabled(boolean scriptEnabled)
    • getScript

      public String getScript()
    • setScript

      public void setScript(String script)
    • setReportData

      public void setReportData(Map reportData)
    • toXML

      public RXElement toXML(RXArchiver anArchiver)
      Description copied from class: RMShape
      XML Archival.
      Specified by:
      toXML in interface Archivable
      Overrides:
      toXML in class RMShape
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement e)
      Description copied from class: RMShape
      XML unarchival.
      Specified by:
      fromXML in interface Archivable
      Overrides:
      fromXML in class RMShape