Enum PlaceholderAlignment

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PlaceholderAlignment>

    public enum PlaceholderAlignment
    extends java.lang.Enum<PlaceholderAlignment>
    Where to vertically align the placeholder relative to the surrounding text.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ABOVE_BASELINE
      Align the bottom edge of the placeholder with the baseline such that the placeholder sits on top of the baseline.
      BASELINE
      Match the baseline of the placeholder with the baseline.
      BELOW_BASELINE
      Align the top edge of the placeholder with the baseline specified in such that the placeholder hangs below the baseline.
      BOTTOM
      Align the bottom edge of the placeholder with the top edge of the font.
      MIDDLE
      Align the middle of the placeholder with the middle of the text.
      TOP
      Align the top edge of the placeholder with the top edge of the font.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PlaceholderAlignment valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PlaceholderAlignment[] 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

      • BASELINE

        public static final PlaceholderAlignment BASELINE
        Match the baseline of the placeholder with the baseline.
      • ABOVE_BASELINE

        public static final PlaceholderAlignment ABOVE_BASELINE
        Align the bottom edge of the placeholder with the baseline such that the placeholder sits on top of the baseline.
      • BELOW_BASELINE

        public static final PlaceholderAlignment BELOW_BASELINE
        Align the top edge of the placeholder with the baseline specified in such that the placeholder hangs below the baseline.
      • TOP

        public static final PlaceholderAlignment TOP
        Align the top edge of the placeholder with the top edge of the font. When the placeholder is very tall, the extra space will hang from the top and extend through the bottom of the line.
      • BOTTOM

        public static final PlaceholderAlignment BOTTOM
        Align the bottom edge of the placeholder with the top edge of the font. When the placeholder is very tall, the extra space will rise from the bottom and extend through the top of the line.
      • MIDDLE

        public static final PlaceholderAlignment MIDDLE
        Align the middle of the placeholder with the middle of the text. When the placeholder is very tall, the extra space will grow equally from the top and bottom of the line.
    • Method Detail

      • values

        public static PlaceholderAlignment[] 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 (PlaceholderAlignment c : PlaceholderAlignment.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PlaceholderAlignment 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