Interface HasLegendText

    • Method Detail

      • getLegendTextHandler

        LegendTextHandler getLegendTextHandler()
        Returns a legend text handler instance to use in the default methods of this interface.
        Returns:
        a legend text handler instance
      • getText

        default String getText()
        Returns the text that will be displayed
        Returns:
        the text that will be displayed.
      • setText

        default void setText​(String text)
        Sets the text that will be displayed.
        Parameters:
        text - the text that will be displayed
      • setText

        default void setText​(SafeHtml text)
        Sets the label that will be displayed, as HTML.
        This field is used ONLY by HtmlLegend plugin and not by CHART.js.
        Parameters:
        text - the label that will be displayed, as HTML
      • getTextAsHtml

        default SafeHtml getTextAsHtml()
        Returns the label that will be displayed, as HTML.
        If is not HTML, returns Undefined.STRING. This field is used ONLY by HtmlLegend plugin and not by CHART.js.
        Returns:
        the label that will be displayed, as HTML.
      • isHtmlText

        default boolean isHtmlText()
        Returns true if the text of legend item is HTML.
        This field is used ONLY by HtmlLegend plugin and not by CHART.js.
        Returns:
        true if the text of legend item is HTML
      • setHtmlText

        default void setHtmlText​(boolean htmlText)
        Sets true if the text of legend item is HTML.
        This field is used ONLY by HtmlLegend plugin and not by CHART.js.
        Parameters:
        htmlText - true if the text of legend item is HTML