-
public final class Font
This class is used to represent a font. For more customization of fonts, the CSS feature can be used.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Font.FontWeight
Enum class for representing all available font weights for the Font class.
public enum
Font.FontStyle
Enum class for representing all available font styles for the Font class.
-
Field Summary
Fields Modifier and Type Field Description private final Number
size
private final Color
color
private final String
family
private final Font.FontWeight
fontWeight
private final Font.FontStyle
fontStyle
-
Constructor Summary
Constructors Constructor Description Font(Number size, Color color, String family, Font.FontWeight fontWeight, Font.FontStyle fontStyle)
Creates a Font.
-
Method Summary
Modifier and Type Method Description final Number
getSize()
final Color
getColor()
final String
getFamily()
final Font.FontWeight
getFontWeight()
final Font.FontStyle
getFontStyle()
-
-
Constructor Detail
-
Font
Font(Number size, Color color, String family, Font.FontWeight fontWeight, Font.FontStyle fontStyle)
Creates a Font.- Parameters:
size
- Size of this Font inpx
.color
- Color of this font.family
- Font family as a String for this Font.fontWeight
- Font weight for this Font.fontStyle
- Font style for this Font.
-
-
Method Detail
-
getFontWeight
final Font.FontWeight getFontWeight()
-
getFontStyle
final Font.FontStyle getFontStyle()
-
-
-
-