Class SymbolicXYItemLabelGenerator

    • Constructor Detail

      • SymbolicXYItemLabelGenerator

        public SymbolicXYItemLabelGenerator()
    • Method Detail

      • generateToolTip

        public String generateToolTip​(XYDataset data,
                                      int series,
                                      int item)
        Generates a tool tip text item for a particular item within a series.
        Specified by:
        generateToolTip in interface XYToolTipGenerator
        Parameters:
        data - the dataset.
        series - the series number (zero-based index).
        item - the item number (zero-based index).
        Returns:
        The tool tip text (possibly null).
      • generateLabel

        public String generateLabel​(XYDataset dataset,
                                    int series,
                                    int category)
        Generates a label for the specified item. The label is typically a formatted version of the data value, but any text can be used.
        Specified by:
        generateLabel in interface XYItemLabelGenerator
        Parameters:
        dataset - the dataset (null not permitted).
        series - the series index (zero-based).
        category - the category index (zero-based).
        Returns:
        The label (possibly null).
      • equals

        public boolean equals​(Object obj)
        Tests if this object is equal to another.
        Overrides:
        equals in class Object
        Parameters:
        obj - the other object.
        Returns:
        A boolean.
      • hashCode

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