Class CustomXYToolTipGenerator

    • Constructor Detail

      • CustomXYToolTipGenerator

        public CustomXYToolTipGenerator()
        Default constructor.
    • Method Detail

      • getListCount

        public int getListCount()
        Returns the number of tool tip lists stored by the renderer.
        Returns:
        The list count.
      • getToolTipCount

        public int getToolTipCount​(int list)
        Returns the number of tool tips in a given list.
        Parameters:
        list - the list index (zero based).
        Returns:
        The tooltip count.
      • getToolTipText

        public String getToolTipText​(int series,
                                     int item)
        Returns the tool tip text for an item.
        Parameters:
        series - the series index.
        item - the item index.
        Returns:
        The tool tip text.
      • addToolTipSeries

        public void addToolTipSeries​(List toolTips)
        Adds a list of tooltips for a series.
        Parameters:
        toolTips - the list of tool tips.
      • 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 (ignored in this implementation).
        series - the series (zero-based index).
        item - the item (zero-based index).
        Returns:
        The tooltip text.
      • 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.