Package net.sf.jasperreports.engine.type
Enum TextAdjustEnum
- All Implemented Interfaces:
Serializable
,Comparable<TextAdjustEnum>
,java.lang.constant.Constable
,NamedEnum
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA constant value specifying that if the text content of the element does not fit the element size, it is cut and only partially displayed.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.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextAdjustEnum
getName()
static TextAdjustEnum
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 Details
-
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
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
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 Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
-
getByName
-
getDefault
- Specified by:
getDefault
in interfaceNamedEnum
-