Class DefaultXY

    • Field Detail

      • m_AddDiagonalSeries

        protected boolean m_AddDiagonalSeries
        whether to add an additional series for a diagonal to the dataset.
    • Constructor Detail

      • DefaultXY

        public DefaultXY()
    • Method Detail

      • setX

        public void setX​(SpreadSheetColumnIndex value)
        Sets the index of the column to act as X axis. If left empty, the row index is used instead.
        Parameters:
        value - the index
      • getX

        public SpreadSheetColumnIndex getX()
        Returns the index of the column to act as X axis. If left empty, the row index is used instead.
        Returns:
        the index
      • XTipText

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

        public void setY​(SpreadSheetColumnRange value)
        Sets the range of columns to use as Y.
        Parameters:
        value - the range
      • YTipText

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

        public void setAddDiagonalSeries​(boolean value)
        Sets whether to add an additional series for the diagonal to the data.
        Parameters:
        value - true if to add
      • getAddDiagonalSeries

        public boolean getAddDiagonalSeries()
        Returns whether to add an additional series for the diagonal to the data.
        Returns:
        true if to add
      • addDiagonalSeriesTipText

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

        public Class<? extends org.jfree.data.general.Dataset> generates()
        Returns the class of dataset that it generates.
        Specified by:
        generates in class AbstractDatasetGenerator<org.jfree.data.xy.DefaultXYDataset>
        Returns:
        the dataset class
      • check

        protected String check​(SpreadSheet data)
        Hook method for checks before generating the dataset.
        Overrides:
        check in class AbstractDatasetGenerator<org.jfree.data.xy.DefaultXYDataset>
        Parameters:
        data - the data to use
        Returns:
        null if checks passed, otherwise error message
      • doGenerate

        protected org.jfree.data.xy.DefaultXYDataset doGenerate​(SpreadSheet data)
        Performs the actual generation of the dataset.
        Specified by:
        doGenerate in class AbstractDatasetGenerator<org.jfree.data.xy.DefaultXYDataset>
        Parameters:
        data - the data to use
        Returns:
        the dataset
      • doAddSeries

        protected org.jfree.data.xy.DefaultXYDataset doAddSeries​(org.jfree.data.general.Dataset dataset,
                                                                 SpreadSheet data)
        Performs the actual addition of the series to the dataset.
        Specified by:
        doAddSeries in class AbstractDatasetGenerator<org.jfree.data.xy.DefaultXYDataset>
        Parameters:
        dataset - the dataset to add the series to
        data - the data to use
        Returns:
        the dataset