public static enum CropTemplate.Constraint extends java.lang.Enum<CropTemplate.Constraint>
Enum Constant and Description |
---|
ASPECT_RATIO
The crop area needs to have a given aspect ratio.
|
CUSTOM
The crop area can be of any size.
|
FIXED_SIZE
The crop area needs to be of a given fixed pixel size.
|
Modifier and Type | Method and Description |
---|---|
static CropTemplate.Constraint |
find(int id)
Return a constraint enum value by ID.
|
static CropTemplate.Constraint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CropTemplate.Constraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CropTemplate.Constraint ASPECT_RATIO
public static final CropTemplate.Constraint FIXED_SIZE
public static final CropTemplate.Constraint CUSTOM
public static CropTemplate.Constraint[] values()
for (CropTemplate.Constraint c : CropTemplate.Constraint.values()) System.out.println(c);
public static CropTemplate.Constraint valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CropTemplate.Constraint find(int id)
id
- The internal ID of the constraint valuewww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.