Class ChartFactory


  • public abstract class ChartFactory
    extends java.lang.Object
    This class provides methods to create charts for JMad
    • Constructor Summary

      Constructors 
      Constructor Description
      ChartFactory()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void configurePolylineChart​(cern.jdve.data.DataSource ds, cern.jdve.Chart chart)
      configures a chart with the default interactors for JMad
      abstract MarkableChart createMarkableChart()
      this method shall create a markable chart, which reacts on elements to be shown as markers in the chart.
      cern.jdve.Chart createMarkablePolyLineChart​(cern.jdve.data.DataSource ds)
      creates a chart from a datasource with the default interactors for JMad.
      cern.jdve.renderer.PolylineChartRenderer createPolyLineRenderer​(cern.jdve.data.DataSource ds)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChartFactory

        public ChartFactory()
    • Method Detail

      • createMarkablePolyLineChart

        public cern.jdve.Chart createMarkablePolyLineChart​(cern.jdve.data.DataSource ds)
        creates a chart from a datasource with the default interactors for JMad.
        Parameters:
        ds - the DataSource
        Returns:
        the chart
      • configurePolylineChart

        public void configurePolylineChart​(cern.jdve.data.DataSource ds,
                                           cern.jdve.Chart chart)
        configures a chart with the default interactors for JMad
        Parameters:
        ds - the dataset to display
        chart - the chart to configure
      • createPolyLineRenderer

        public cern.jdve.renderer.PolylineChartRenderer createPolyLineRenderer​(cern.jdve.data.DataSource ds)
      • createMarkableChart

        public abstract MarkableChart createMarkableChart()
        this method shall create a markable chart, which reacts on elements to be shown as markers in the chart. this method is injected by spring.
        Returns:
        the MarkableChart