Class FontSizeRule
- java.lang.Object
-
- com.github.weisj.darklaf.theme.info.FontSizeRule
-
- All Implemented Interfaces:
Serializable
public class FontSizeRule extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFontSizeRule.AdjustmentType
-
Constructor Summary
Constructors Modifier Constructor Description protectedFontSizeRule(FontSizePreset preset)protectedFontSizeRule(FontSizeRule.AdjustmentType type, float relativeAdjustment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatadjustFontSize(float size)booleanequals(Object o)static FontSizeRulefromPreset(FontSizePreset preset)static FontSizeRulegetDefault()intgetPercentage()FontSizePresetgetPreset()FontSizeRule.AdjustmentTypegetType()inthashCode()static FontSizeRulerelativeAdjustment(float percent)static FontSizeRulerelativeAdjustment(int percent)StringtoString()
-
-
-
Constructor Detail
-
FontSizeRule
protected FontSizeRule(FontSizePreset preset)
-
FontSizeRule
protected FontSizeRule(FontSizeRule.AdjustmentType type, float relativeAdjustment)
-
-
Method Detail
-
getPreset
public FontSizePreset getPreset()
-
getDefault
public static FontSizeRule getDefault()
-
fromPreset
public static FontSizeRule fromPreset(FontSizePreset preset)
-
relativeAdjustment
public static FontSizeRule relativeAdjustment(float percent)
-
relativeAdjustment
public static FontSizeRule relativeAdjustment(int percent)
-
adjustFontSize
public float adjustFontSize(float size)
-
getType
public FontSizeRule.AdjustmentType getType()
-
getPercentage
public int getPercentage()
-
-