Enum TextAdjustEnum

java.lang.Object
java.lang.Enum<TextAdjustEnum>
net.sf.jasperreports.engine.type.TextAdjustEnum
All Implemented Interfaces:
Serializable, Comparable<TextAdjustEnum>, java.lang.constant.Constable, NamedEnum

public enum TextAdjustEnum extends Enum<TextAdjustEnum> implements NamedEnum
Author:
Teodor Danciu (teodord@users.sourceforge.net)
  • Enum Constant Details

    • 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 Details

    • values

      public static TextAdjustEnum[] 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

      public static TextAdjustEnum valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Specified by:
      getName in interface NamedEnum
    • getByName

      public static TextAdjustEnum getByName(String name)
    • getDefault

      public TextAdjustEnum getDefault()
      Specified by:
      getDefault in interface NamedEnum