public final class SizingType extends Object
Specifies how watermark size should be calculated.
Modifier and Type | Field and Description |
---|---|
static int |
Absolute
Watermark should be sized to an exact
and . |
static int |
Auto
Watermark should be sized automatically according to its content.
|
static int |
ScaleToParentArea
Watermark should be scaled relative to parent area using specified
. |
static int |
ScaleToParentDimensions
Watermark should be scaled relative to parent dimensions using
specified
. |
Modifier and Type | Method and Description |
---|---|
static int |
parse(String value)
Parses a string to a
enumeration value. |
static String |
toString(int value)
Returns a string representation of the
value. |
public static final int Auto
Watermark should be sized automatically according to its content.
public static final int Absolute
Watermark should be sized to an exact
and Watermark.getWidth()
.
Watermark.getHeight()
public static final int ScaleToParentDimensions
Watermark should be scaled relative to parent dimensions using
specified
.
Watermark.getScaleFactor()
public static final int ScaleToParentArea
Watermark should be scaled relative to parent area using specified
.
Watermark.getScaleFactor()
public static final String toString(int value)
Returns a string representation of the
value.
SizingType
value
- The value to convert.SizingType
value.public static final int parse(String value)
Parses a string to a
enumeration value.
SizingType
value
- The string to parse.SizingType
enumeration value.