java.lang.Object
org.refcodes.textual.Font
- 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>
public class Font
extends Object
implements org.refcodes.mixin.FamilyAccessor.FamilyProperty<FontFamily>, org.refcodes.mixin.FamilyAccessor.FamilyBuilder<FontFamily,Font>, org.refcodes.mixin.StyleAccessor.StyleProperty<FontStyle>, org.refcodes.mixin.StyleAccessor.StyleBuilder<FontStyle,Font>, org.refcodes.mixin.SizeAccessor.SizeProperty, org.refcodes.mixin.SizeAccessor.SizeBuilder<Font>, org.refcodes.mixin.NameAccessor.NameProperty, org.refcodes.mixin.NameAccessor.NameBuilder<Font>
The
Font
describes a more generic font.-
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
ConstructorDescriptionFont()
Instantiates a new font impl.Instantiates a new font from aFont
.Instantiates a new font impl.Instantiates a new font impl.Font
(FontFamily aFontType, FontStyle aFontStyle) Instantiates a new font impl.Font
(FontFamily aFontType, FontStyle aFontStyle, int aFontSize) Instantiates a new font impl. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
int
getSize()
getStyle()
void
setFamily
(FontFamily aFontCategory) void
void
setSize
(int aFontSize) void
Returns the accordingFont
.toString()
withFamily
(FontFamily aFontName) withSize
(int aFontSize) 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
-
Font
public Font()Instantiates a new font impl. -
Font
Instantiates a new font from aFont
.- Parameters:
aFont
- TheFont
to use.
-
Font
Instantiates a new font impl.- Parameters:
aFontType
- the font typeaFontStyle
- the font styleaFontSize
- the font size
-
Font
Instantiates a new font impl.- Parameters:
aFontType
- the font typeaFontStyle
- the font style
-
Font
Instantiates a new font impl.- Parameters:
aFontName
- the font nameaFontStyle
- the font styleaFontSize
- the font size
-
Font
Instantiates a new font impl.- Parameters:
aFontName
- the font nameaFontStyle
- the font style
-
-
Method Details
-
toAwtFont
Returns the accordingFont
.- Returns:
- The according
Font
.
-
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>
-