Interface IsTitle

    • Method Detail

      • setDisplay

        void setDisplay​(boolean display)
        Sets true if the element is shown.
        Parameters:
        display - if true the element is shown.
      • setPosition

        void setPosition​(Position position)
        Sets the position of element.
        Parameters:
        position - the position of element.
      • setAlign

        void setAlign​(ElementAlign alignment)
        Sets the alignment of the element.
        Parameters:
        alignment - alignment of the element.
      • setFullSize

        void setFullSize​(boolean fullSize)
        Marks that this box should take the full width/height of the canvas (moving other boxes).
        Parameters:
        fullSize - Marks that this box should take the full width/height of the canvas (moving other boxes)
      • setText

        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

        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
      • setColor

        void setColor​(String color)
        Sets the font color.
        Parameters:
        color - font color.
      • getPadding

        Padding getPadding()
        Description copied from interface: IsDefaultAbstractTitle
        Returns the padding to apply around labels. Only top and bottom are implemented.
        Specified by:
        getPadding in interface IsDefaultAbstractTitle
        Returns:
        Padding to apply around labels. Only top and bottom are implemented.