Enum Class Watermark.WatermarkPosition
java.lang.Object
java.lang.Enum<Watermark.WatermarkPosition>
com.idrsolutions.image.process.Watermark.WatermarkPosition
- All Implemented Interfaces:
Serializable,Comparable<Watermark.WatermarkPosition>,Constable
- Enclosing class:
Watermark
Where the watermark is placed on the image.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCentre the watermark on the image.Scale the watermark to fill the image width (text) or the whole image (shapes and images).Place a text or shape watermark using the rectangle or shape it was created with. -
Method Summary
Modifier and TypeMethodDescriptionstatic Watermark.WatermarkPositionReturns the enum constant of this class with the specified name.static Watermark.WatermarkPosition[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Center
Centre the watermark on the image. -
FitToImage
Scale the watermark to fill the image width (text) or the whole image (shapes and images). -
USE_SHAPE_COORDINATES
Place a text or shape watermark using the rectangle or shape it was created with. Text with no rectangle, and image watermarks, are placed at the top left of the image.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-