Package ca.cgjennings.graphics.strokes
Enum TextStroke.Style
- java.lang.Object
-
- java.lang.Enum<TextStroke.Style>
-
- ca.cgjennings.graphics.strokes.TextStroke.Style
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TextStroke.Style>
- Enclosing class:
- TextStroke
public static enum TextStroke.Style extends java.lang.Enum<TextStroke.Style>
TheStyle
determines how the text is placed fitted to the path when the length of the text and the length of a path are not the same.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextStroke.Style
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TextStroke.Style[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPEAT
public static final TextStroke.Style REPEAT
Repeat the text as needed to complete the stroke.
-
FIT
public static final TextStroke.Style FIT
Adjust the natural text spacing to fill out the stroke.
-
ONCE
public static final TextStroke.Style ONCE
Align the text to the start of the stroke.
-
-
Method Detail
-
values
public static TextStroke.Style[] 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 (TextStroke.Style c : TextStroke.Style.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextStroke.Style 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
-
-