Class AbstractTitle<T extends IsDefaultAbstractTitle>

    • Method Detail

      • getFontContainer

        public final 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
      • getPadding

        public final Padding getPadding()
        Returns the padding to apply around labels. Only top and bottom are implemented.
        Specified by:
        getPadding in interface IsDefaultAbstractTitle
        Specified by:
        getPadding in interface IsTitle
        Returns:
        padding to apply around labels. Only top and bottom are implemented.
      • setColor

        public void setColor​(String color)
        Description copied from interface: IsTitle
        Sets the font color.
        Specified by:
        setColor in interface HasFont
        Specified by:
        setColor in interface IsTitle
        Parameters:
        color - font color.
      • setFullSize

        public final void setFullSize​(boolean fullSize)
        Marks that this box should take the full width/height of the canvas (moving other boxes).
        Specified by:
        setFullSize in interface IsTitle
        Parameters:
        fullSize - Marks that this box should take the full width/height of the canvas (moving other boxes)
      • isFullSize

        public final boolean isFullSize()
        Returns if that this box should take the full width/height of the canvas (moving other boxes).
        Specified by:
        isFullSize in interface IsDefaultAbstractTitle
        Returns:
        true if that this box should take the full width/height of the canvas (moving other boxes).
      • setText

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

        public final List<String> getText()
        Returns the title text to display, as a list of strings.
        Specified by:
        getText in interface IsTitle
        Returns:
        a list of strings or an empty list if not exist
      • setDisplay

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

        public boolean isDisplay()
        Returns true if the element is shown.
        Specified by:
        isDisplay in interface IsDefaultPluginElement
        Returns:
        if true the element is shown.
      • setPosition

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

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