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