public class Watermark extends Object
Represents a container for the page watermark properties.
Constructor and Description |
---|
Watermark(String text)
Initializes a new instance of the
Watermark class. |
Watermark(String text,
Color color,
int position,
float width)
Initializes a new instance of the
Watermark class. |
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
The watermark text color.
|
String |
getFontName()
The watermark text font name e.g.
|
int |
getPosition()
The watermark text color.
|
String |
getText()
The watermark text.
|
float |
getWidth()
The watermark width.
|
void |
setColor(Color value)
Sets color.
|
void |
setFontName(String value)
The watermark text font name e.g.
|
void |
setPosition(int value)
The watermark position.
|
void |
setText(String value)
The watermark text.
|
void |
setWidth(float value)
The watermark width.
|
public Watermark(String text)
Initializes a new instance of the Watermark
class.
text
- The text.public String getText()
The watermark text.
public void setText(String value)
The watermark text.
value
- the valuepublic Color getColor()
The watermark text color.
public void setColor(Color value)
value
- the valuepublic int getPosition()
The watermark text color.
public void setPosition(int value)
The watermark position.
value
- the valuepublic float getWidth()
The watermark width.
public void setWidth(float value)
The watermark width.
value
- the valuepublic String getFontName()
The watermark text font name e.g. "MS Gothic" or "Verdana". In case you want to specify custom font please add path to the font directories list in ViewerConfig class.
String
object.Copyright © 2018. All rights reserved.