Package net.sf.jasperreports.engine.type
Enum TextAdjustEnum
- java.lang.Object
-
- java.lang.Enum<TextAdjustEnum>
-
- net.sf.jasperreports.engine.type.TextAdjustEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextAdjustEnum>,NamedEnum
public enum TextAdjustEnum extends java.lang.Enum<TextAdjustEnum> implements NamedEnum
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUT_TEXTA constant value specifying that if the text content of the element does not fit the element size, it is cut and only partially displayed.SCALE_FONTA constant value specifying that if the text content of the element does not fit the element size, the font size of the content is decreased so that it fits the element entirely.STRETCH_HEIGHTA constant value specifying that if the text content of the element does not fit the element size, the height of the element is increased so that the entire content fits the element, unless a page/column breaks occurs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextAdjustEnumgetByName(java.lang.String name)java.lang.StringgetName()static TextAdjustEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextAdjustEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CUT_TEXT
public static final TextAdjustEnum CUT_TEXT
A constant value specifying that if the text content of the element does not fit the element size, it is cut and only partially displayed.
-
STRETCH_HEIGHT
public static final TextAdjustEnum STRETCH_HEIGHT
A constant value specifying that if the text content of the element does not fit the element size, the height of the element is increased so that the entire content fits the element, unless a page/column breaks occurs.
-
SCALE_FONT
public static final TextAdjustEnum SCALE_FONT
A constant value specifying that if the text content of the element does not fit the element size, the font size of the content is decreased so that it fits the element entirely.
-
-
Method Detail
-
values
public static TextAdjustEnum[] 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 (TextAdjustEnum c : TextAdjustEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextAdjustEnum 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
-
getByName
public static TextAdjustEnum getByName(java.lang.String name)
-
-