public enum FontScaleStrategy extends Enum<FontScaleStrategy>
Enum Constant and Description |
---|
Auto
Container chooses strategy
|
FitHeight
Size to text bounds, if text smaller than container -> /, if text height bigger -> use
smaller font size
|
FitParent
Size to object bounds, if text smaller -> increase font size, if text bigger -> use
smaller font size
|
FitParentHeight
Size to object bounds, if text height smaller -> increase font size, if text height bigger
-> use smaller font size
|
FitSize
Size to text bounds, if text smaller than container -> /, if text bigger -> use smaller
font size
|
NoScale
No scaling at all
|
Modifier and Type | Method and Description |
---|---|
static FontScaleStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontScaleStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontScaleStrategy FitSize
public static final FontScaleStrategy FitHeight
public static final FontScaleStrategy FitParent
public static final FontScaleStrategy FitParentHeight
public static final FontScaleStrategy NoScale
public static final FontScaleStrategy Auto
public static FontScaleStrategy[] values()
for (FontScaleStrategy c : FontScaleStrategy.values()) System.out.println(c);
public static FontScaleStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All rights reserved.