public class TextWatermarkOptions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Gets font color.
|
java.lang.String |
getFontFamily()
Gets font family name.
|
float |
getFontSize()
Gets a font size.
|
int |
getLayout()
Gets layout of the watermark.
|
boolean |
isSemitrasparent()
Gets a boolean value which is responsible for opacity of the watermark.
|
void |
isSemitrasparent(boolean value)
Sets a boolean value which is responsible for opacity of the watermark.
|
void |
setColor(java.awt.Color value)
Sets font color.
|
void |
setFontFamily(java.lang.String value)
Sets font family name.
|
void |
setFontSize(float value)
Sets a font size.
|
void |
setLayout(int value)
Sets layout of the watermark.
|
public java.lang.String getFontFamily()
public void setFontFamily(java.lang.String value)
value - Font family name.public java.awt.Color getColor()
public void setColor(java.awt.Color value)
value - Font color.public float getFontSize()
Valid values range from 0 to 65.5 inclusive.
Auto font size means that the watermark will be scaled to its max width and max height relative to the page margins.
java.lang.IllegalArgumentException - Throws when argument was out of the range of valid values.public void setFontSize(float value)
Valid values range from 0 to 65.5 inclusive.
Auto font size means that the watermark will be scaled to its max width and max height relative to the page margins.
value - A font size.java.lang.IllegalArgumentException - Throws when argument was out of the range of valid values.public boolean isSemitrasparent()
public void isSemitrasparent(boolean value)
value - A boolean value which is responsible for opacity of the watermark.public int getLayout()
WatermarkLayout.DIAGONAL.WatermarkLayout constants.public void setLayout(int value)
WatermarkLayout.DIAGONAL.value - Layout of the watermark. The value must be one of WatermarkLayout constants.