Package FlaNium.WinAPI.enums
Enum BasePoint
- java.lang.Object
-
- java.lang.Enum<BasePoint>
-
- FlaNium.WinAPI.enums.BasePoint
-
- All Implemented Interfaces:
Serializable,Comparable<BasePoint>
public enum BasePoint extends Enum<BasePoint>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM_LEFTBOTTOM_RIGHTCENTERCENTER_BOTTOMCENTER_LEFTCENTER_RIGHTCENTER_TOPTOP_LEFTTOP_RIGHTZERO_POINT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetXCoordinate(int xTopLeftCoordinate, int width)intgetYCoordinate(int yTopLeftCoordinate, int height)static BasePointvalueOf(String name)Returns the enum constant of this type with the specified name.static BasePoint[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
getXCoordinate
public int getXCoordinate(int xTopLeftCoordinate, int width)
-
getYCoordinate
public int getYCoordinate(int yTopLeftCoordinate, int height)
-
-