public enum TextAutofit extends java.lang.Enum<TextAutofit>
Autofit specifies 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 TextAutofit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextAutofit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAutofit NONE
public static final 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 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 TextAutofit[] values()
for (TextAutofit c : TextAutofit.values()) System.out.println(c);
public static 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 2021 The Apache Software Foundation or its licensors, as applicable.