Enum Alignment

    • Enum Constant Detail

      • CENTER

        public static final Alignment CENTER
        the component will be horizontally and vertically centered.
        ...
        .X.
        ...
      • TOP

        public static final Alignment TOP
        the component will be located at the top and horizontally centered.
        .X.
        ...
        ...
      • BOTTOM

        public static final Alignment BOTTOM
        the component will be located at the bottom and horizontally centered.
        ...
        ...
        .X.
      • LEFT

        public static final Alignment LEFT
        the component will be located at the left and vertically centered.
        ...
        X..
        ...
      • RIGHT

        public static final Alignment RIGHT
        the component will be located at the right and vertically centered.
        ...
        ..X
        ...
      • TOP_LEFT

        public static final Alignment TOP_LEFT
        the component will be located at the right and vertically centered.
        X..
        ...
        ...
      • TOP_RIGHT

        public static final Alignment TOP_RIGHT
        the component will be located at the right and vertically centered.
        ..X
        ...
        ...
      • BOTTOM_LEFT

        public static final Alignment BOTTOM_LEFT
        the component will be located at the right and vertically centered.
        ...
        ...
        X..
      • BOTTOM_RIGHT

        public static final Alignment BOTTOM_RIGHT
        the component will be located at the right and vertically centered.
        ...
        ...
        ..X
    • Method Detail

      • values

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

        public static Alignment 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
      • getValue

        public String getValue()
        Returns:
        the ascii symbol.
      • getMirrored

        public abstract Alignment getMirrored()
        This method gets the inverse alignment.
        Returns:
        the inverse alignment. E.g. BOTTOM_RIGHT for TOP_LEFT. Returns itself if CENTER.