Class FontType

    • Field Detail

      • REGULAR

        public static final FontType REGULAR
      • BOLD

        public static final FontType BOLD
      • SMALL

        public static final FontType SMALL
    • Constructor Detail

      • FontType

        public FontType​(String family,
                        int size,
                        boolean bold,
                        boolean italic,
                        Font font)
      • FontType

        public FontType()
    • Method Detail

      • getFont

        public Font getFont()
      • getFamily

        public String getFamily()
      • getSize

        public int getSize()
      • isBold

        public boolean isBold()
      • isItalic

        public boolean isItalic()
      • withFamily

        public FontType withFamily​(String family)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withSize

        public FontType withSize​(int size)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withBold

        public FontType withBold​(boolean bold)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withItalic

        public FontType withItalic​(boolean italic)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withFont

        public FontType withFont​(Font font)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).