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 intprivate final Stringprivate FontUIResourceprivate booleanprivate Fontprivate final intprivate final floatprivate final intprivate 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) FontUIResourcederive(Font baseFont, IntUnaryOperator scale) private static booleanisDialogFamily(String family) private static booleanisFallbackFont(Font font) private static StringpreferredFamily(List<String> families) private FontUIResourcetoUIResource(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, ornullstyle- new style of font, or-1styleChange- derive style of base font; or0(the lower 16 bits are added; the upper 16 bits are removed)absoluteSize- new size of font, or0relativeSize- added to size of base font, or0scaleSize- multiply size of base font, or0
-
-
Method Details
-
createValue
- Specified by:
createValuein interfaceUIDefaults.ActiveValue
-
derive
-
toUIResource
-
isFallbackFont
-
isDialogFamily
-
preferredFamily
-