Package com.formdev.flatlaf
Class FlatLaf.ActiveFont
java.lang.Object
com.formdev.flatlaf.FlatLaf.ActiveFont
- All Implemented Interfaces:
UIDefaults.ActiveValue
- Enclosing class:
FlatLaf
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final String
private FontUIResource
private boolean
private Font
private final int
private final float
private final int
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionActiveFont
(String baseFontKey, List<String> families, int style, int styleChange, int absoluteSize, int relativeSize, float scaleSize) -
Method Summary
Modifier and TypeMethodDescriptioncreateValue
(UIDefaults table) (package private) FontUIResource
derive
(Font baseFont, IntUnaryOperator scale) private static boolean
isDialogFamily
(String family) private static boolean
isFallbackFont
(Font font) private static String
preferredFamily
(List<String> families) private FontUIResource
toUIResource
(Font font)
-
Field Details
-
baseFontKey
-
families
-
style
private final int style -
styleChange
private final int styleChange -
absoluteSize
private final int absoluteSize -
relativeSize
private final int relativeSize -
scaleSize
private final float scaleSize -
font
-
lastBaseFont
-
inCreateValue
private boolean inCreateValue
-
-
Constructor Details
-
ActiveFont
ActiveFont(String baseFontKey, List<String> families, int style, int styleChange, int absoluteSize, int relativeSize, float scaleSize) - Parameters:
families
- list of font families, ornull
style
- new style of font, or-1
styleChange
- derive style of base font; or0
(the lower 16 bits are added; the upper 16 bits are removed)absoluteSize
- new size of font, or0
relativeSize
- added to size of base font, or0
scaleSize
- multiply size of base font, or0
-
-
Method Details
-
createValue
- Specified by:
createValue
in interfaceUIDefaults.ActiveValue
-
derive
-
toUIResource
-
isFallbackFont
-
isDialogFamily
-
preferredFamily
-