Enum TextAnchor

    • Method Detail

      • values

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

        public static TextAnchor 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
      • isLeft

        public boolean isLeft()
        Returns true if the anchor is a left-side anchor, and false otherwise.
        Returns:
        A boolean.
      • isRight

        public boolean isRight()
        Returns true if the anchor is a right-side anchor, and false otherwise.
        Returns:
        A boolean.
      • isHorizontalCenter

        public boolean isHorizontalCenter()
        Returns true if the anchor is a center anchor, and false otherwise.
        Returns:
        A boolean.
      • isTop

        public boolean isTop()
        Returns true if the anchor is a top anchor, and false otherwise.
        Returns:
        A boolean.
      • isBottom

        public boolean isBottom()
        Returns true if the anchor is a bottom anchor, and false otherwise.
        Returns:
        A boolean.
      • isBaseline

        public boolean isBaseline()
        Returns true if the anchor is a baseline anchor, and false otherwise.
        Returns:
        A boolean.
      • isHalfAscent

        public boolean isHalfAscent()
        Returns true if the anchor is a half-ascent anchor, and false otherwise.
        Returns:
        A boolean.
      • isVerticalCenter

        public boolean isVerticalCenter()
        Returns true if the anchor is a half-ascent anchor, and false otherwise.
        Returns:
        A boolean.