Package swingtree
Enum Class SwingTreeInitConfig.Scaling
- All Implemented Interfaces:
Serializable
,Comparable<SwingTreeInitConfig.Scaling>
,Constable
- Enclosing class:
- SwingTreeInitConfig
Defines how the scaling factor for the UI should be determined.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe scaling will be derived from the default font size, if a default font was specified.The scaling will be derived from the supplied scaling factor.The scaling will be derived from the system font size.No scaling will be performed. -
Method Summary
Modifier and TypeMethodDescriptionstatic SwingTreeInitConfig.Scaling
Returns the enum constant of this class with the specified name.static SwingTreeInitConfig.Scaling[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No scaling will be performed. -
FROM_SCALING_FACTOR
The scaling will be derived from the supplied scaling factor. (seeSwingTreeInitConfig.uiScaleFactor(float)
as well as system property"swingtree.uiScale"
). -
FROM_DEFAULT_FONT
The scaling will be derived from the default font size, if a default font was specified. (seeSwingTreeInitConfig.defaultFont(Font)
) -
FROM_SYSTEM_FONT
The scaling will be derived from the system font size. This scaling policy is chosen if no default font was specified, no scaling factor was specified and the scaling mode is enabled (seeSwingTreeInitConfig.isUiScaleFactorEnabled()
).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-