java.lang.Object
org.refcodes.textual.FontImpl
- All Implemented Interfaces:
org.refcodes.mixin.FamilyAccessor<FontFamily>
,org.refcodes.mixin.FamilyAccessor.FamilyBuilder<FontFamily,Font>
,org.refcodes.mixin.FamilyAccessor.FamilyMutator<FontFamily>
,org.refcodes.mixin.FamilyAccessor.FamilyProperty<FontFamily>
,org.refcodes.mixin.NameAccessor
,org.refcodes.mixin.NameAccessor.NameBuilder<Font>
,org.refcodes.mixin.NameAccessor.NameMutator
,org.refcodes.mixin.NameAccessor.NameProperty
,org.refcodes.mixin.SizeAccessor
,org.refcodes.mixin.SizeAccessor.SizeBuilder<Font>
,org.refcodes.mixin.SizeAccessor.SizeMutator
,org.refcodes.mixin.SizeAccessor.SizeProperty
,org.refcodes.mixin.StyleAccessor<FontStyle>
,org.refcodes.mixin.StyleAccessor.StyleBuilder<FontStyle,Font>
,org.refcodes.mixin.StyleAccessor.StyleMutator<FontStyle>
,org.refcodes.mixin.StyleAccessor.StyleProperty<FontStyle>
,Font
public class FontImpl extends Object implements Font
The Class FontImpl.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.FamilyAccessor
org.refcodes.mixin.FamilyAccessor.FamilyBuilder<T extends Object,B extends org.refcodes.mixin.FamilyAccessor.FamilyBuilder<T,B>>, org.refcodes.mixin.FamilyAccessor.FamilyMutator<T extends Object>, org.refcodes.mixin.FamilyAccessor.FamilyProperty<T extends Object>
Nested classes/interfaces inherited from interface org.refcodes.mixin.NameAccessor
org.refcodes.mixin.NameAccessor.NameBuilder<B extends org.refcodes.mixin.NameAccessor.NameBuilder<B>>, org.refcodes.mixin.NameAccessor.NameMutator, org.refcodes.mixin.NameAccessor.NameProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.SizeAccessor
org.refcodes.mixin.SizeAccessor.SizeBuilder<B extends org.refcodes.mixin.SizeAccessor.SizeBuilder<B>>, org.refcodes.mixin.SizeAccessor.SizeMutator, org.refcodes.mixin.SizeAccessor.SizeProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.StyleAccessor
org.refcodes.mixin.StyleAccessor.StyleBuilder<T extends Object,B extends org.refcodes.mixin.StyleAccessor.StyleBuilder<T,B>>, org.refcodes.mixin.StyleAccessor.StyleMutator<T extends Object>, org.refcodes.mixin.StyleAccessor.StyleProperty<T extends Object>
-
Constructor Summary
Constructors Constructor Description FontImpl()
Instantiates a new font impl.FontImpl(Font aFont)
Instantiates a new font from aFont
.FontImpl(String aFontName, FontStyle aFontStyle)
Instantiates a new font impl.FontImpl(String aFontName, FontStyle aFontStyle, int aFontSize)
Instantiates a new font impl.FontImpl(FontFamily aFontType, FontStyle aFontStyle)
Instantiates a new font impl.FontImpl(FontFamily aFontType, FontStyle aFontStyle, int aFontSize)
Instantiates a new font impl. -
Method Summary
Modifier and Type Method Description FontFamily
getFamily()
String
getName()
int
getSize()
FontStyle
getStyle()
void
setFamily(FontFamily aFontCategory)
void
setName(String aFontName)
void
setSize(int aFontSize)
void
setStyle(FontStyle aFontStyle)
String
toString()
Font
withFamily(FontFamily aFontName)
Font
withName(String aFontName)
Font
withSize(int aFontSize)
Font
withStyle(FontStyle aFontStyle)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.FamilyAccessor.FamilyProperty
letFamily
Methods inherited from interface org.refcodes.mixin.NameAccessor.NameProperty
letName
Methods inherited from interface org.refcodes.mixin.SizeAccessor.SizeProperty
letSize
Methods inherited from interface org.refcodes.mixin.StyleAccessor.StyleProperty
letStyle
-
Constructor Details
-
FontImpl
public FontImpl()Instantiates a new font impl. -
FontImpl
Instantiates a new font from aFont
.- Parameters:
aFont
- TheFont
to use.
-
FontImpl
Instantiates a new font impl.- Parameters:
aFontType
- the font typeaFontStyle
- the font styleaFontSize
- the font size
-
FontImpl
Instantiates a new font impl.- Parameters:
aFontType
- the font typeaFontStyle
- the font style
-
FontImpl
Instantiates a new font impl.- Parameters:
aFontName
- the font nameaFontStyle
- the font styleaFontSize
- the font size
-
FontImpl
Instantiates a new font impl.- Parameters:
aFontName
- the font nameaFontStyle
- the font style
-
-
Method Details
-
getFamily
- Specified by:
getFamily
in interfaceorg.refcodes.mixin.FamilyAccessor<FontFamily>
-
setFamily
- Specified by:
setFamily
in interfaceorg.refcodes.mixin.FamilyAccessor.FamilyMutator<FontFamily>
-
withFamily
- Specified by:
withFamily
in interfaceorg.refcodes.mixin.FamilyAccessor.FamilyBuilder<FontFamily,Font>
-
getStyle
- Specified by:
getStyle
in interfaceorg.refcodes.mixin.StyleAccessor<FontStyle>
-
setStyle
- Specified by:
setStyle
in interfaceorg.refcodes.mixin.StyleAccessor.StyleMutator<FontStyle>
-
withStyle
-
getSize
public int getSize()- Specified by:
getSize
in interfaceorg.refcodes.mixin.SizeAccessor
-
setSize
public void setSize(int aFontSize)- Specified by:
setSize
in interfaceorg.refcodes.mixin.SizeAccessor.SizeMutator
-
withSize
- Specified by:
withSize
in interfaceorg.refcodes.mixin.SizeAccessor.SizeBuilder<Font>
-
toString
-
getName
- Specified by:
getName
in interfaceorg.refcodes.mixin.NameAccessor
-
setName
- Specified by:
setName
in interfaceorg.refcodes.mixin.NameAccessor.NameMutator
-
withName
- Specified by:
withName
in interfaceorg.refcodes.mixin.NameAccessor.NameBuilder<Font>
-