Class ScaleTitle

    • Method Detail

      • getFontContainer

        public FontContainer getFontContainer()
        Description copied from interface: HasFont
        Returns a font container instance to use in the default methods of this interface.
        Specified by:
        getFontContainer in interface HasFont
        Returns:
        a font container instance
      • setDisplay

        public void setDisplay​(boolean display)
        If true, display the axis title.
        Parameters:
        display - if true, display the axis title.
      • isDisplay

        public boolean isDisplay()
        If true, display the axis title.
        Specified by:
        isDisplay in interface IsDefaultScaleTitle
        Returns:
        if true, display the axis title.
      • setText

        public void setText​(String... text)
        Sets the title text to display.
        If specified as an array, text is rendered on multiple lines.
        Parameters:
        text - the title text to display.
        If specified as an array, text is rendered on multiple lines.
      • getText

        public List<String> getText()
        Returns the title text to display, as a list of strings.
        Returns:
        a list of strings or an empty list if not exist
      • setAlign

        public void setAlign​(ScaleTitleAlign align)
        Sets the alignment of the axis title.
        Parameters:
        align - the alignment of the axis title