public class FontImpl extends Object implements Font
FontTypeAccessor.FontTypeBuilder<B extends FontTypeAccessor.FontTypeBuilder<B>>, FontTypeAccessor.FontTypeMutator, FontTypeAccessor.FontTypeProperty
FontStyleAccessor.FontStyleBuilder<B extends FontStyleAccessor.FontStyleBuilder<B>>, FontStyleAccessor.FontStyleMutator, FontStyleAccessor.FontStyleProperty
FontSizeAccessor.FontSizeBuilder<B extends FontSizeAccessor.FontSizeBuilder<B>>, FontSizeAccessor.FontSizeMutator, FontSizeAccessor.FontSizeProperty
FontNameAccessor.FontNameBuilder<B extends FontNameAccessor.FontNameBuilder<B>>, FontNameAccessor.FontNameMutator, FontNameAccessor.FontNameProperty
Constructor and Description |
---|
FontImpl() |
FontImpl(FontType aFontType,
FontStyle aFontStyle) |
FontImpl(FontType aFontType,
FontStyle aFontStyle,
int aFontSize) |
FontImpl(String aFontName,
FontStyle aFontStyle) |
FontImpl(String aFontName,
FontStyle aFontStyle,
int aFontSize) |
Modifier and Type | Method and Description |
---|---|
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(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.
|
String |
toString() |
Font |
withFontName(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.
|
public FontType getFontType()
FontTypeAccessor
getFontType
in interface FontTypeAccessor
public void setFontType(FontType aFontType)
FontTypeAccessor.FontTypeMutator
setFontType
in interface FontTypeAccessor.FontTypeMutator
aFontType
- The font type to be stored by the font
type property.public Font withFontType(FontType aFontName)
FontTypeAccessor.FontTypeBuilder
withFontType
in interface FontTypeAccessor.FontTypeBuilder<Font>
aFontName
- The font type to be stored by the font
type property.public FontStyle getFontStyle()
FontStyleAccessor
getFontStyle
in interface FontStyleAccessor
public void setFontStyle(FontStyle aFontStyle)
FontStyleAccessor.FontStyleMutator
setFontStyle
in interface FontStyleAccessor.FontStyleMutator
aFontStyle
- The font style to be stored by the font
style property.public Font withFontStyle(FontStyle aFontStyle)
FontStyleAccessor.FontStyleBuilder
withFontStyle
in interface FontStyleAccessor.FontStyleBuilder<Font>
aFontStyle
- The font style to be stored by the font
style property.public int getFontSize()
FontSizeAccessor
getFontSize
in interface FontSizeAccessor
public void setFontSize(int aFontSize)
FontSizeAccessor.FontSizeMutator
setFontSize
in interface FontSizeAccessor.FontSizeMutator
aFontSize
- The font style to be stored by the font
style property.public Font withFontSize(int aFontSize)
FontSizeAccessor.FontSizeBuilder
withFontSize
in interface FontSizeAccessor.FontSizeBuilder<Font>
aFontSize
- The font style to be stored by the font
style property.public String getFontName()
FontNameAccessor
getFontName
in interface FontNameAccessor
public void setFontName(String aFontName)
FontNameAccessor.FontNameMutator
setFontName
in interface FontNameAccessor.FontNameMutator
aFontName
- The font name to be stored by the font name
property.public Font withFontName(String aFontName)
FontNameAccessor.FontNameBuilder
withFontName
in interface FontNameAccessor.FontNameBuilder<Font>
aFontName
- The font name to be stored by the font name
property.Copyright © 2017. All rights reserved.