Enum TextBaseline

    • Enum Constant Detail

      • ALPHABETIC

        public static final TextBaseline ALPHABETIC
        The text baseline is the normal alphabetic baseline. Default value.
      • BOTTOM

        public static final TextBaseline BOTTOM
        The text baseline is the bottom of the bounding box. This differs from the ideographic baseline in that the ideographic baseline doesn't consider descenders.
      • HANGING

        public static final TextBaseline HANGING
        The text baseline is the hanging baseline.
      • IDEOGRAPHIC

        public static final TextBaseline IDEOGRAPHIC
        The text baseline is the ideographic baseline; this is the bottom of the body of the characters, if the main body of characters protrudes beneath the alphabetic baseline.
      • MIDDLE

        public static final TextBaseline MIDDLE
        The text baseline is the middle of the em square.
      • TOP

        public static final TextBaseline TOP
        The text baseline is the top of the em square.
    • Method Detail

      • values

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

        public static TextBaseline 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
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property