Class FontImpl

    • Constructor Detail

      • FontImpl

        public FontImpl()
        Instantiates a new font impl.
      • FontImpl

        public FontImpl​(FontType aFontType,
                        FontStyle aFontStyle,
                        int aFontSize)
        Instantiates a new font impl.
        Parameters:
        aFontType - the font type
        aFontStyle - the font style
        aFontSize - the font size
      • FontImpl

        public FontImpl​(FontType aFontType,
                        FontStyle aFontStyle)
        Instantiates a new font impl.
        Parameters:
        aFontType - the font type
        aFontStyle - the font style
      • FontImpl

        public FontImpl​(java.lang.String aFontName,
                        FontStyle aFontStyle,
                        int aFontSize)
        Instantiates a new font impl.
        Parameters:
        aFontName - the font name
        aFontStyle - the font style
        aFontSize - the font size
      • FontImpl

        public FontImpl​(java.lang.String aFontName,
                        FontStyle aFontStyle)
        Instantiates a new font impl.
        Parameters:
        aFontName - the font name
        aFontStyle - the font style
    • Method Detail

      • getFontType

        public FontType getFontType()
        Retrieves the font type from the font type property.
        Specified by:
        getFontType in interface FontTypeAccessor
        Returns:
        The font type stored by the font type property.
      • setFontType

        public void setFontType​(FontType aFontType)
        Sets the font type for the font type property.
        Specified by:
        setFontType in interface FontTypeAccessor.FontTypeMutator
        Parameters:
        aFontType - The font type to be stored by the font type property.
      • withFontType

        public Font withFontType​(FontType aFontName)
        Sets the font type for the font type property.
        Specified by:
        withFontType in interface FontTypeAccessor.FontTypeBuilder<Font>
        Parameters:
        aFontName - The font type to be stored by the font type property.
        Returns:
        The builder for applying multiple build operations.
      • getFontStyle

        public FontStyle getFontStyle()
        Retrieves the font style from the font style property.
        Specified by:
        getFontStyle in interface FontStyleAccessor
        Returns:
        The font style stored by the font style property.
      • withFontStyle

        public Font withFontStyle​(FontStyle aFontStyle)
        Sets the font style for the font style property.
        Specified by:
        withFontStyle in interface FontStyleAccessor.FontStyleBuilder<Font>
        Parameters:
        aFontStyle - The font style to be stored by the font style property.
        Returns:
        The builder for applying multiple build operations.
      • getFontSize

        public int getFontSize()
        Retrieves the font style from the font style property.
        Specified by:
        getFontSize in interface FontSizeAccessor
        Returns:
        The font style stored by the font style property.
      • setFontSize

        public void setFontSize​(int aFontSize)
        Sets the font style for the font style property.
        Specified by:
        setFontSize in interface FontSizeAccessor.FontSizeMutator
        Parameters:
        aFontSize - The font style to be stored by the font style property.
      • withFontSize

        public Font withFontSize​(int aFontSize)
        Sets the font style for the font style property.
        Specified by:
        withFontSize in interface FontSizeAccessor.FontSizeBuilder<Font>
        Parameters:
        aFontSize - The font style to be stored by the font style property.
        Returns:
        The builder for applying multiple build operations.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFontName

        public java.lang.String getFontName()
        Retrieves the font name from the font name property.
        Specified by:
        getFontName in interface FontNameAccessor
        Returns:
        The font name stored by the font name property.
      • setFontName

        public void setFontName​(java.lang.String aFontName)
        Sets the font name for the font name property.
        Specified by:
        setFontName in interface FontNameAccessor.FontNameMutator
        Parameters:
        aFontName - The font name to be stored by the font name property.
      • withFontName

        public Font withFontName​(java.lang.String aFontName)
        Sets the font name for the font name property.
        Specified by:
        withFontName in interface FontNameAccessor.FontNameBuilder<Font>
        Parameters:
        aFontName - The font name to be stored by the font name property.
        Returns:
        The builder for applying multiple build operations.