public static enum TextShape.TextAutofit extends java.lang.Enum<TextShape.TextAutofit>
Autofit specofies that a shape should be auto-fit to fully contain the text described within it. Auto-fitting is when text within a shape is scaled in order to contain all the text inside
Enum Constant and Description |
---|
NONE
Specifies that text within the text body should not be auto-fit to the bounding box.
|
NORMAL
Specifies that text within the text body should be normally auto-fit to the bounding box.
|
SHAPE
Specifies that a shape should be auto-fit to fully contain the text described within it.
|
Modifier and Type | Method and Description |
---|---|
static TextShape.TextAutofit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextShape.TextAutofit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextShape.TextAutofit NONE
public static final TextShape.TextAutofit NORMAL
Example: Consider the situation where a user is building a diagram and needs to have the text for each shape that they are using stay within the bounds of the shape. An easy way this might be done is by using NORMAL autofit
public static final TextShape.TextAutofit SHAPE
Example: Consider the situation where a user is building a diagram and needs to have the text for each shape that they are using stay within the bounds of the shape. An easy way this might be done is by using SHAPE autofit
public static TextShape.TextAutofit[] values()
for (TextShape.TextAutofit c : TextShape.TextAutofit.values()) System.out.println(c);
public static TextShape.TextAutofit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright 2020 The Apache Software Foundation or its licensors, as applicable.