Class Style


  • public class Style
    extends java.lang.Object
    The class Style group the several values required to paint a Tile.

    Styles are grouped into a linked list in ancestry order. This disposition permits to implement style inheritance.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getControlAlignment​(boolean isRelative)
      Returns the Control alignment constant to be used by elements using this style.
      Font getFont()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • defaultFontSize

        public static int defaultFontSize
        Set the default font size to be used in the current build. Note that the Document must be re-rendered in order to update its font.
      • isParagraph

        protected boolean isParagraph
      • fontBits

        protected int fontBits
      • topMargin

        protected int topMargin
      • fontSize

        protected int fontSize
      • fontFace

        protected java.lang.String fontFace
      • fontColor

        protected int fontColor
      • backColor

        protected int backColor
      • alignment

        protected int alignment
      • indent

        protected int indent
      • isDisjoint

        protected boolean isDisjoint
      • href

        protected java.lang.String href
        If this text is part of a link, what is the href for this link
    • Method Detail

      • getFont

        public Font getFont()
      • getControlAlignment

        public int getControlAlignment​(boolean isRelative)
        Returns the Control alignment constant to be used by elements using this style.
        Parameters:
        isRelative - true if the alignment constant returned should be relative to another control instead of relative to the screen.
        Returns:
        the matching Control alignment constant
        Since:
        TotalCross 1.27