Class StandardCategorySeriesLabelGenerator

    • Field Detail

    • Constructor Detail

      • StandardCategorySeriesLabelGenerator

        public StandardCategorySeriesLabelGenerator()
        Creates a default series label generator (uses DEFAULT_LABEL_FORMAT).
      • StandardCategorySeriesLabelGenerator

        public StandardCategorySeriesLabelGenerator​(String format)
        Creates a new series label generator.
        Parameters:
        format - the format pattern (null not permitted).
    • Method Detail

      • createItemArray

        protected Object[] createItemArray​(CategoryDataset dataset,
                                           int series)
        Creates the array of items that can be passed to the MessageFormat class for creating labels.
        Parameters:
        dataset - the dataset (null not permitted).
        series - the series (zero-based index).
        Returns:
        The items (never null).
      • equals

        public boolean equals​(Object obj)
        Tests this object for equality with an arbitrary object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the other object (null permitted).
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code for this instance.
        Overrides:
        hashCode in class Object
        Returns:
        A hash code.