public class TextWatermark extends ImageWatermark
TextWatermark
represents a string of text to be used to watermark an underlying image.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
DEFAULT_LOCATION, DEFAULT_OPACITY, DEFAULT_ORIENTATION
Constructor and Description |
---|
TextWatermark(int top,
int left,
double orientation,
float opacity,
java.lang.String text,
Font font) |
TextWatermark(int top,
int left,
java.lang.String text,
Font font) |
TextWatermark(Location position,
double orientation,
float opacity,
java.lang.String text,
Font font) |
TextWatermark(Location position,
java.lang.String text,
Font font) |
TextWatermark(java.lang.String text) |
TextWatermark(java.lang.String text,
Font font) |
Modifier and Type | Method and Description |
---|---|
Font |
getFont() |
java.awt.image.BufferedImage |
getImage()
Generates a transparent image representing the text of this watermark.
|
java.lang.String |
getText() |
boolean |
isVertical() |
void |
setFont(Font font) |
void |
setText(java.lang.String text) |
void |
setVertical(boolean vertical) |
java.lang.String |
toString() |
setImage
getLeft, getOpacity, getOrientation, getPosition, getTop, setCoords, setLeft, setOpacity, setOrientation, setPosition, setTop
public static final java.lang.String COPYRIGHT
public TextWatermark(java.lang.String text)
public TextWatermark(java.lang.String text, Font font)
public TextWatermark(Location position, double orientation, float opacity, java.lang.String text, Font font)
public TextWatermark(int top, int left, double orientation, float opacity, java.lang.String text, Font font)
public TextWatermark(int top, int left, java.lang.String text, Font font)
public java.lang.String getText()
public void setText(java.lang.String text)
public Font getFont()
public void setFont(Font font)
public java.awt.image.BufferedImage getImage()
getImage
in class ImageWatermark
BufferedImage
object thus producedpublic boolean isVertical()
public void setVertical(boolean vertical)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"