Enum FontSizePreset
- java.lang.Object
-
- java.lang.Enum<FontSizePreset>
-
- com.github.weisj.darklaf.theme.info.FontSizePreset
-
- All Implemented Interfaces:
Serializable,Comparable<FontSizePreset>
public enum FontSizePreset extends Enum<FontSizePreset> implements Serializable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatadjustFontSize(float size)intgetPercentage()FontSizeRule.AdjustmentTypegetType()static FontSizePresetvalueOf(String name)Returns the enum constant of this type with the specified name.static FontSizePreset[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TINY
public static final FontSizePreset TINY
-
Small
public static final FontSizePreset Small
-
SMALL
public static final FontSizePreset SMALL
-
NORMAL
public static final FontSizePreset NORMAL
-
Large
public static final FontSizePreset Large
-
LARGE
public static final FontSizePreset LARGE
-
Huge
public static final FontSizePreset Huge
-
HUGE
public static final FontSizePreset HUGE
-
-
Method Detail
-
values
public static FontSizePreset[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FontSizePreset c : FontSizePreset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FontSizePreset valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getPercentage
public int getPercentage()
-
adjustFontSize
public float adjustFontSize(float size)
-
getType
public FontSizeRule.AdjustmentType getType()
-
-