public class Font extends ValueObject
| Constructor and Description |
|---|
Font(String fontFamilyName,
float size)
creates new Font instance
|
| Modifier and Type | Method and Description |
|---|---|
Font |
clone(float newSize) |
static Font |
getDefault() |
protected List<Object> |
getEqualityComponents()
Gets equality components.
|
String |
getFamilyName()
Fets font family name
|
float |
getSize()
Gets font size
|
boolean |
isBold()
Font bold flag
|
boolean |
isItalic()
Font italic flag
|
boolean |
isUnderline()
Gets Font underline
|
void |
setBold(boolean bold)
Sets Font bold flag
|
void |
setItalic(boolean italic)
Sets font italic flag
|
void |
setUnderline(boolean underline)
Sets Font underline
|
equals, equals, hashCode, op_Equality, op_Inequalitypublic Font(String fontFamilyName, float size)
fontFamilyName - Font namesize - Font sizepublic Font clone(float newSize)
public static Font getDefault()
protected List<Object> getEqualityComponents()
ValueObjectGets equality components.
getEqualityComponents in class ValueObjectpublic String getFamilyName()
public float getSize()
public boolean isBold()
public boolean isItalic()
public boolean isUnderline()
public void setBold(boolean bold)
bold - true if boldpublic void setItalic(boolean italic)
italic - true if Italicpublic void setUnderline(boolean underline)
underline - Font underline flagCopyright © 2024. All rights reserved.