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
Watermark.Width and Watermark.Height |
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
Watermark.ScaleFactor |
static int |
ScaleToParentDimensions
Watermark should be scaled relative to parent dimensions using
specified
Watermark.ScaleFactor . |
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 Watermark.Width
and Watermark.Height
public static final int ScaleToParentDimensions
Watermark should be scaled relative to parent dimensions using
specified Watermark.ScaleFactor
.
public static final int ScaleToParentArea
Watermark should be scaled relative to parent area using specified Watermark.ScaleFactor
public static final String toString(int value)
Returns a string representation of the SizingType value.
value
- The value to convert.public static final int parse(String value)
Parses a string to a SizingType enumeration value.
value
- The string to parse.Copyright © 2020. All rights reserved.