Class StandardPieToolTipGenerator

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization.
        See Also:
        Constant Field Values
      • DEFAULT_TOOLTIP_FORMAT

        public static final java.lang.String DEFAULT_TOOLTIP_FORMAT
        The default tooltip format.
        See Also:
        Constant Field Values
    • Constructor Detail

      • StandardPieToolTipGenerator

        public StandardPieToolTipGenerator()
        Creates an item label generator using default number formatters.
      • StandardPieToolTipGenerator

        public StandardPieToolTipGenerator​(java.util.Locale locale)
        Creates a pie tool tip generator for the specified locale, using the default format string.
        Parameters:
        locale - the locale (null not permitted).
      • StandardPieToolTipGenerator

        public StandardPieToolTipGenerator​(java.lang.String labelFormat)
        Creates a pie tool tip generator for the default locale.
        Parameters:
        labelFormat - the label format (null not permitted).
      • StandardPieToolTipGenerator

        public StandardPieToolTipGenerator​(java.lang.String labelFormat,
                                           java.util.Locale locale)
        Creates a pie tool tip generator for the specified locale.
        Parameters:
        labelFormat - the label format (null not permitted).
        locale - the locale (null not permitted).
      • StandardPieToolTipGenerator

        public StandardPieToolTipGenerator​(java.lang.String labelFormat,
                                           java.text.NumberFormat numberFormat,
                                           java.text.NumberFormat percentFormat)
        Creates an item label generator using the specified number formatters.
        Parameters:
        labelFormat - the label format string (null not permitted).
        numberFormat - the format object for the values (null not permitted).
        percentFormat - the format object for the percentages (null not permitted).
    • Method Detail

      • generateToolTip

        public java.lang.String generateToolTip​(PieDataset dataset,
                                                java.lang.Comparable key)
        Generates a tool tip text item for one section in a pie chart.
        Specified by:
        generateToolTip in interface PieToolTipGenerator
        Parameters:
        dataset - the dataset (null not permitted).
        key - the section key (null not permitted).
        Returns:
        The tool tip text (possibly null).
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns an independent copy of the generator.
        Specified by:
        clone in interface PublicCloneable
        Overrides:
        clone in class AbstractPieItemLabelGenerator
        Returns:
        A clone.
        Throws:
        java.lang.CloneNotSupportedException - should not happen.