Enum 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_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.
      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.
      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.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TextAdjustEnum getByName​(java.lang.String name)  
      java.lang.String getName()  
      static TextAdjustEnum valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getName

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

        public static TextAdjustEnum getByName​(java.lang.String name)