Class DefaultCategory

    • Constructor Detail

      • DefaultCategory

        public DefaultCategory()
    • 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.
      • 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.category.DefaultCategoryDataset>
        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.category.DefaultCategoryDataset>
        Parameters:
        data - the data to use
        Returns:
        null if checks passed, otherwise error message
      • doGenerate

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

        protected org.jfree.data.category.DefaultCategoryDataset 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.category.DefaultCategoryDataset>
        Parameters:
        dataset - the dataset to add the series to
        data - the data to use
        Returns:
        the updated dataset