Enum FontStretch
- java.lang.Object
-
- java.lang.Enum<FontStretch>
-
- com.github.weisj.jsvg.attributes.font.FontStretch
-
- All Implemented Interfaces:
HasMatchName
,java.io.Serializable
,java.lang.Comparable<FontStretch>
public enum FontStretch extends java.lang.Enum<FontStretch> implements HasMatchName
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Condensed
Expanded
ExtraCondensed
ExtraExpanded
Normal
Percentage
Allowed values range from 50% to 200%.SemiCondensed
SemiExpanded
UltraCondensed
UltraExpanded
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.lang.String
matchName
private float
percentage
-
Constructor Summary
Constructors Modifier Constructor Description private
FontStretch(float percentage)
private
FontStretch(float percentage, @NotNull java.lang.String matchName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
matchName()
float
percentage()
static FontStretch
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FontStretch[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Normal
public static final FontStretch Normal
-
UltraCondensed
public static final FontStretch UltraCondensed
-
ExtraCondensed
public static final FontStretch ExtraCondensed
-
Condensed
public static final FontStretch Condensed
-
SemiCondensed
public static final FontStretch SemiCondensed
-
SemiExpanded
public static final FontStretch SemiExpanded
-
Expanded
public static final FontStretch Expanded
-
ExtraExpanded
public static final FontStretch ExtraExpanded
-
UltraExpanded
public static final FontStretch UltraExpanded
-
Percentage
public static final FontStretch Percentage
Allowed values range from 50% to 200%.
-
-
Method Detail
-
values
public static FontStretch[] 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 (FontStretch c : FontStretch.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FontStretch 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
-
percentage
public float percentage()
-
-