Class AbstractChartGenerator<T extends org.jfree.data.general.Dataset>

    • Field Detail

      • m_Title

        protected String m_Title
        the title of the chart.
      • m_Legend

        protected boolean m_Legend
        whether to show the legend.
      • m_ToolTips

        protected boolean m_ToolTips
        whether to show tool tips.
    • Constructor Detail

      • AbstractChartGenerator

        public AbstractChartGenerator()
    • Method Detail

      • setTitle

        public void setTitle​(String value)
        Sets the title for the plot.
        Parameters:
        value - the title
      • getTitle

        public String getTitle()
        Returns the title for the plot.
        Returns:
        the title
      • titleTipText

        public String titleTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setLegend

        public void setLegend​(boolean value)
        Sets whether the legend is displayed..
        Parameters:
        value - true if displayed
      • getLegend

        public boolean getLegend()
        Returns whether the legend is displayed.
        Returns:
        true if displayed
      • legendTipText

        public String legendTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setToolTips

        public void setToolTips​(boolean value)
        Sets whether the tool tips are displayed..
        Parameters:
        value - true if displayed
      • getToolTips

        public boolean getToolTips()
        Returns whether the tool tips are displayed.
        Returns:
        true if displayed
      • toolTipsTipText

        public String toolTipsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(T data)
        Hook method for checks before generating the chart.
        Parameters:
        data - the data to use
        Returns:
        null if checks passed, otherwise error message
      • doGenerate

        protected abstract org.jfree.chart.JFreeChart doGenerate​(T data)
        Performs the actual generation of the chart.
        Parameters:
        data - the data to use
        Returns:
        the chart
      • generate

        public org.jfree.chart.JFreeChart generate​(T data)
        Generates the chart.
        Parameters:
        data - the data to use
        Returns:
        the chart