Enum BasePoint

    • Enum Constant Detail

      • TOP_LEFT

        public static final BasePoint TOP_LEFT
      • TOP_RIGHT

        public static final BasePoint TOP_RIGHT
      • BOTTOM_LEFT

        public static final BasePoint BOTTOM_LEFT
      • BOTTOM_RIGHT

        public static final BasePoint BOTTOM_RIGHT
      • CENTER

        public static final BasePoint CENTER
      • CENTER_TOP

        public static final BasePoint CENTER_TOP
      • CENTER_BOTTOM

        public static final BasePoint CENTER_BOTTOM
      • CENTER_LEFT

        public static final BasePoint CENTER_LEFT
      • CENTER_RIGHT

        public static final BasePoint CENTER_RIGHT
      • ZERO_POINT

        public static final BasePoint ZERO_POINT
    • Method Detail

      • values

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

        public static BasePoint 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
      • getXCoordinate

        public int getXCoordinate​(int xTopLeftCoordinate,
                                  int width)
      • getYCoordinate

        public int getYCoordinate​(int yTopLeftCoordinate,
                                  int height)