Class BoxAndWhiskerXYToolTipGenerator

    • Field Detail

      • DEFAULT_TOOL_TIP_FORMAT

        public static final String DEFAULT_TOOL_TIP_FORMAT
        The default tooltip format string.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BoxAndWhiskerXYToolTipGenerator

        public BoxAndWhiskerXYToolTipGenerator()
        Creates a default item label generator.
      • BoxAndWhiskerXYToolTipGenerator

        public BoxAndWhiskerXYToolTipGenerator​(String toolTipFormat,
                                               DateFormat dateFormat,
                                               NumberFormat numberFormat)
        Creates a new item label generator. If the date formatter is not null, the x-values will be formatted as dates.
        Parameters:
        toolTipFormat - the tool tip format string (null not permitted).
        numberFormat - the number formatter (null not permitted).
        dateFormat - the date formatter (null permitted).
    • Method Detail

      • createItemArray

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

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