public class WatermarkText extends Object implements Serializable
| Constructor and Description |
|---|
WatermarkText(String text)
Creates a new watermark-text with the specified content.
|
WatermarkText(String text,
String fontName,
int fontSize,
int opacity,
EnumSet<WatermarkTextStyle> styles)
Creates a new watermark-text with the specified options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getFontName() |
int |
getFontSize() |
int |
getOpacity() |
EnumSet<WatermarkTextStyle> |
getStyles() |
String |
getStylesAsString() |
String |
getText() |
int |
hashCode() |
void |
setFontName(String fontName) |
void |
setFontSize(int fontSize) |
void |
setOpacity(int opacity) |
void |
setStyles(EnumSet<WatermarkTextStyle> styles) |
String |
toString() |
public WatermarkText(String text)
text - the content of the watermark-textpublic WatermarkText(String text, String fontName, int fontSize, int opacity, EnumSet<WatermarkTextStyle> styles)
text - the content of the textfontName - the name of the font to usefontSize - the font-size in pt to useopacity - the opacity of the watermarkstyles - the styles to use for the textpublic String getText()
public String getFontName()
public void setFontName(String fontName)
fontName - the name of the font to usepublic int getFontSize()
public void setFontSize(int fontSize)
fontSize - the size (in pt) of the textpublic int getOpacity()
public void setOpacity(int opacity)
opacity - the opacity of the textpublic EnumSet<WatermarkTextStyle> getStyles()
public String getStylesAsString()
public void setStyles(EnumSet<WatermarkTextStyle> styles)
styles - the styles to use for the textCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.