Package org.refcodes.textual
Class FontImpl
- java.lang.Object
-
- org.refcodes.textual.FontImpl
-
- All Implemented Interfaces:
Font
,FontNameAccessor
,FontNameAccessor.FontNameBuilder<Font>
,FontNameAccessor.FontNameMutator
,FontNameAccessor.FontNameProperty
,FontSizeAccessor
,FontSizeAccessor.FontSizeBuilder<Font>
,FontSizeAccessor.FontSizeMutator
,FontSizeAccessor.FontSizeProperty
,FontStyleAccessor
,FontStyleAccessor.FontStyleBuilder<Font>
,FontStyleAccessor.FontStyleMutator
,FontStyleAccessor.FontStyleProperty
,FontTypeAccessor
,FontTypeAccessor.FontTypeBuilder<Font>
,FontTypeAccessor.FontTypeMutator
,FontTypeAccessor.FontTypeProperty
public class FontImpl extends java.lang.Object implements Font
The Class FontImpl.- Author:
- steiner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.textual.FontNameAccessor
FontNameAccessor.FontNameBuilder<B extends FontNameAccessor.FontNameBuilder<B>>, FontNameAccessor.FontNameMutator, FontNameAccessor.FontNameProperty
-
Nested classes/interfaces inherited from interface org.refcodes.textual.FontSizeAccessor
FontSizeAccessor.FontSizeBuilder<B extends FontSizeAccessor.FontSizeBuilder<B>>, FontSizeAccessor.FontSizeMutator, FontSizeAccessor.FontSizeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.textual.FontStyleAccessor
FontStyleAccessor.FontStyleBuilder<B extends FontStyleAccessor.FontStyleBuilder<B>>, FontStyleAccessor.FontStyleMutator, FontStyleAccessor.FontStyleProperty
-
Nested classes/interfaces inherited from interface org.refcodes.textual.FontTypeAccessor
FontTypeAccessor.FontTypeBuilder<B extends FontTypeAccessor.FontTypeBuilder<B>>, FontTypeAccessor.FontTypeMutator, FontTypeAccessor.FontTypeProperty
-
-
Constructor Summary
Constructors Constructor Description FontImpl()
Instantiates a new font impl.FontImpl(java.lang.String aFontName, FontStyle aFontStyle)
Instantiates a new font impl.FontImpl(java.lang.String aFontName, FontStyle aFontStyle, int aFontSize)
Instantiates a new font impl.FontImpl(FontType aFontType, FontStyle aFontStyle)
Instantiates a new font impl.FontImpl(FontType aFontType, FontStyle aFontStyle, int aFontSize)
Instantiates a new font impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFontName()
Retrieves the font name from the font name property.int
getFontSize()
Retrieves the font style from the font style property.FontStyle
getFontStyle()
Retrieves the font style from the font style property.FontType
getFontType()
Retrieves the font type from the font type property.void
setFontName(java.lang.String aFontName)
Sets the font name for the font name property.void
setFontSize(int aFontSize)
Sets the font style for the font style property.void
setFontStyle(FontStyle aFontStyle)
Sets the font style for the font style property.void
setFontType(FontType aFontType)
Sets the font type for the font type property.java.lang.String
toString()
Font
withFontName(java.lang.String aFontName)
Sets the font name for the font name property.Font
withFontSize(int aFontSize)
Sets the font style for the font style property.Font
withFontStyle(FontStyle aFontStyle)
Sets the font style for the font style property.Font
withFontType(FontType aFontName)
Sets the font type for the font type property.
-
-
-
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 typeaFontStyle
- the font styleaFontSize
- the font size
-
FontImpl
public FontImpl(FontType aFontType, FontStyle aFontStyle)
Instantiates a new font impl.- Parameters:
aFontType
- the font typeaFontStyle
- the font style
-
FontImpl
public FontImpl(java.lang.String aFontName, FontStyle aFontStyle, int aFontSize)
Instantiates a new font impl.- Parameters:
aFontName
- the font nameaFontStyle
- the font styleaFontSize
- the font size
-
FontImpl
public FontImpl(java.lang.String aFontName, FontStyle aFontStyle)
Instantiates a new font impl.- Parameters:
aFontName
- the font nameaFontStyle
- the font style
-
-
Method Detail
-
getFontType
public FontType getFontType()
Retrieves the font type from the font type property.- Specified by:
getFontType
in interfaceFontTypeAccessor
- 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 interfaceFontTypeAccessor.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 interfaceFontTypeAccessor.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 interfaceFontStyleAccessor
- Returns:
- The font style stored by the font style property.
-
setFontStyle
public void setFontStyle(FontStyle aFontStyle)
Sets the font style for the font style property.- Specified by:
setFontStyle
in interfaceFontStyleAccessor.FontStyleMutator
- Parameters:
aFontStyle
- The font style to be 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 interfaceFontStyleAccessor.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 interfaceFontSizeAccessor
- 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 interfaceFontSizeAccessor.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 interfaceFontSizeAccessor.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 classjava.lang.Object
-
getFontName
public java.lang.String getFontName()
Retrieves the font name from the font name property.- Specified by:
getFontName
in interfaceFontNameAccessor
- 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 interfaceFontNameAccessor.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 interfaceFontNameAccessor.FontNameBuilder<Font>
- Parameters:
aFontName
- The font name to be stored by the font name property.- Returns:
- The builder for applying multiple build operations.
-
-