Package adams.data.image.transformer
Enum Resize.ScalingType
- java.lang.Object
-
- java.lang.Enum<Resize.ScalingType>
-
- adams.data.image.transformer.Resize.ScalingType
-
- All Implemented Interfaces:
Serializable
,Comparable<Resize.ScalingType>
- Enclosing class:
- Resize
public static enum Resize.ScalingType extends Enum<Resize.ScalingType>
Type of scaling to perform.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AREA_AVERAGING
DEFAULT
FAST
REPLICATE
SMOOTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Returns the Image constant associated with the enum.static Resize.ScalingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Resize.ScalingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final Resize.ScalingType DEFAULT
-
FAST
public static final Resize.ScalingType FAST
-
SMOOTH
public static final Resize.ScalingType SMOOTH
-
REPLICATE
public static final Resize.ScalingType REPLICATE
-
AREA_AVERAGING
public static final Resize.ScalingType AREA_AVERAGING
-
-
Method Detail
-
values
public static Resize.ScalingType[] 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 (Resize.ScalingType c : Resize.ScalingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Resize.ScalingType 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
-
getType
public int getType()
Returns the Image constant associated with the enum.- Returns:
- the type
-
-