public class Size extends Object
Watermark size.
Modifier and Type | Field and Description |
---|---|
static Size |
FULL_SIZE
The maximum size of watermark text that fits page.
|
static Size |
HALF_SIZE
The half of the maximum size of watermark text that fits page.
|
static Size |
ONE_THIRD
The one third of the maximum size of watermark text that fits page.
|
Constructor and Description |
---|
Size(byte relativeSize)
Initializes new instance of
Size class. |
Modifier and Type | Method and Description |
---|---|
byte |
getRelativeSize()
The watermark text size in percentages in relation to page width.
|
public static final Size FULL_SIZE
The maximum size of watermark text that fits page.
public static final Size HALF_SIZE
The half of the maximum size of watermark text that fits page.
public static final Size ONE_THIRD
The one third of the maximum size of watermark text that fits page.
public Size(byte relativeSize) throws IllegalArgumentException
Initializes new instance of Size
class.
relativeSize
- The size in percents in relation to page size.IllegalArgumentException
- Thrown when relativeSize is zero or higher than 100.