Package com.contentful.java.cda.image
Enum ImageOption.Focus
- java.lang.Object
-
- java.lang.Enum<ImageOption.Focus>
-
- com.contentful.java.cda.image.ImageOption.Focus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ImageOption.Focus>
- Enclosing class:
- ImageOption
public static enum ImageOption.Focus extends java.lang.Enum<ImageOption.Focus>
Defines the area of focus to crop to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description bottombottom_leftbottom_rightfaceFocus the resizing/cropping on one face detected area.facesFocus the resizing/cropping on multiple face detected areas.leftrighttopDirectional focus areas.top_lefttop_right
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageOption.FocusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ImageOption.Focus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
top
public static final ImageOption.Focus top
Directional focus areas.
-
left
public static final ImageOption.Focus left
- See Also:
top
-
right
public static final ImageOption.Focus right
- See Also:
top
-
bottom
public static final ImageOption.Focus bottom
- See Also:
top
-
top_left
public static final ImageOption.Focus top_left
- See Also:
top
-
top_right
public static final ImageOption.Focus top_right
- See Also:
top
-
bottom_left
public static final ImageOption.Focus bottom_left
- See Also:
top
-
bottom_right
public static final ImageOption.Focus bottom_right
- See Also:
top
-
face
public static final ImageOption.Focus face
Focus the resizing/cropping on one face detected area.
-
faces
public static final ImageOption.Focus faces
Focus the resizing/cropping on multiple face detected areas.
-
-
Method Detail
-
values
public static ImageOption.Focus[] 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 (ImageOption.Focus c : ImageOption.Focus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageOption.Focus valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-