Enum PredefinedFontSize
- java.lang.Object
-
- java.lang.Enum<PredefinedFontSize>
-
- com.github.weisj.jsvg.attributes.font.PredefinedFontSize
-
- All Implemented Interfaces:
FontSize
,HasMatchName
,java.io.Serializable
,java.lang.Comparable<PredefinedFontSize>
@Immutable public enum PredefinedFontSize extends java.lang.Enum<PredefinedFontSize> implements HasMatchName, FontSize
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.lang.String
matchName
private float
scalingFactor
-
Constructor Summary
Constructors Modifier Constructor Description private
PredefinedFontSize(float scalingFactor)
private
PredefinedFontSize(@NotNull java.lang.String matchName, float scalingFactor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
matchName()
@NotNull Length
size(@NotNull Length parentSize)
static PredefinedFontSize
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PredefinedFontSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
xxSmall
public static final PredefinedFontSize xxSmall
-
xSmall
public static final PredefinedFontSize xSmall
-
small
public static final PredefinedFontSize small
-
medium
public static final PredefinedFontSize medium
-
large
public static final PredefinedFontSize large
-
xLarge
public static final PredefinedFontSize xLarge
-
xxLarge
public static final PredefinedFontSize xxLarge
-
xxxLarge
public static final PredefinedFontSize xxxLarge
-
larger
public static final PredefinedFontSize larger
-
smaller
public static final PredefinedFontSize smaller
-
Number
public static final PredefinedFontSize Number
-
-
Method Detail
-
values
public static PredefinedFontSize[] 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 (PredefinedFontSize c : PredefinedFontSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PredefinedFontSize valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
matchName
@NotNull public @NotNull java.lang.String matchName()
- Specified by:
matchName
in interfaceHasMatchName
-
-