|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.PageElement com.cete.dynamicpdf.pageelements.TaggablePageElement com.cete.dynamicpdf.pageelements.Watermark com.cete.dynamicpdf.pageelements.TextWatermark
public class TextWatermark
This class can be used to place a TextWatermark on the page.
Licensing:
This is a DynamicPDF Generator Professional
Edition feature. One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
TextWatermark(java.lang.String text)
Creates a new instance of TextWatermark . |
|
TextWatermark(java.lang.String text,
Font font)
Creates a new instance of TextWatermark . |
|
TextWatermark(java.lang.String text,
Font font,
float fontSize)
Creates a new instance of TextWatermark . |
Method Summary | |
---|---|
void |
draw(PageWriter writer)
Draws the Text Watermark to the given PageWriter object. |
void |
drawAnnotation(DocumentWriter writer)
Draws the Text Watermark to the given DocumentWriter object. |
boolean |
getAutoScale()
Gets the Auto Scale property of the watermark. |
Font |
getFont()
Gets the Font object to use for the text of the watermark. |
float |
getFontSize()
Gets the font size for the text of the watermark. |
int |
getScalingPercentage()
Gets the Scaling Percentage of the watermark. |
boolean |
getStrikethrough()
Gets the strikeThrough for the text outline of the watermark.. |
java.lang.String |
getText()
Gets the Text of the watermark. |
Color |
getTextColor()
Gets the Color object to use for the text of the watermark. |
Color |
getTextOutlineColor()
Gets the Color object to use for the text outline of the watermark. |
float |
getTextOutlineWidth()
Gets the line width to use for the text outline of the watermark.. |
boolean |
getUnderline()
Gets a value indicating if the watermark is underlined. |
void |
setAutoScale(boolean value)
Sets the Auto Scale property of the watermark. |
void |
setFont(Font value)
Sets the Font object to use for the text of the watermark. |
void |
setFontSize(float value)
Sets the font size for the text of the watermark. |
void |
setScalingPercentage(int value)
Sets the Scaling Percentage of the watermark. |
void |
setStrikethrough(boolean value)
Sets the strikeThrough for the text outline of the watermark.. |
void |
setText(java.lang.String value)
Sets the Text of the watermark. |
void |
setTextColor(Color value)
Sets the Color object to use for the text of the watermark. |
void |
setTextOutlineColor(Color value)
Sets the Color object to use for the text outline of the watermark. |
void |
setTextOutlineWidth(float value)
Sets the line width to use for the text outline of the watermark.. |
void |
setUnderline(boolean value)
Sets a value indicating if the watermark is underlined. |
Methods inherited from class com.cete.dynamicpdf.pageelements.Watermark |
---|
getAlternateName, getAngle, getName, getOpacity, getPosition, getXOffset, getYOffset, setAlternateName, setAngle, setName, setOpacity, setPosition, setXOffset, setYOffset |
Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement |
---|
getTag, getTagOrder, setTag, setTagOrder |
Methods inherited from class com.cete.dynamicpdf.PageElement |
---|
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextWatermark(java.lang.String text)
TextWatermark
.
text
- Text to display in the textWatermark.public TextWatermark(java.lang.String text, Font font)
TextWatermark
.
text
- Text to display in the textWatermark.font
- Font
for the text of the textWatermark.public TextWatermark(java.lang.String text, Font font, float fontSize)
TextWatermark
.
text
- Text to display in the textWatermark.font
- Font
for the text of the textWatermark.fontSize
- Font size of the text of the textWatermark.Method Detail |
---|
public java.lang.String getText()
public void setText(java.lang.String value)
value
- the Text of the watermark.public Font getFont()
Font
object to use for the text of the watermark.
Font
public void setFont(Font value)
Font
object to use for the text of the watermark.
value
- the text font of the watermark.Font
public float getFontSize()
public void setFontSize(float value)
value
- the font size for the text of the watermark.public int getScalingPercentage()
public void setScalingPercentage(int value)
value
- the Scaling Percentage of the watermark.public boolean getAutoScale()
public void setAutoScale(boolean value)
value
- the Auto Scale property of the watermark.public Color getTextColor()
Color
object to use for the text of the watermark.
Color
public void setTextColor(Color value)
Color
object to use for the text of the watermark.
value
- the text color of the watermark.Color
public Color getTextOutlineColor()
Color
object to use for the text outline of the watermark.
Color
public void setTextOutlineColor(Color value)
Color
object to use for the text outline of the watermark.
value
- the text color of the text outline of the watermark.Color
public float getTextOutlineWidth()
public void setTextOutlineWidth(float value)
value
- the text width of the text outline of the watermark.public boolean getStrikethrough()
public void setStrikethrough(boolean value)
value
- the strikeThrough of the text outline of the watermark.public boolean getUnderline()
public void setUnderline(boolean value)
value
- underline property of the watermark.public void draw(PageWriter writer)
PageWriter
object.
draw
in class Watermark
writer
- PageWriter
object to receive the Text Watermark's output.PageWriter
public void drawAnnotation(DocumentWriter writer)
DocumentWriter
object.
drawAnnotation
in interface IAnnotation
drawAnnotation
in class Watermark
writer
- DocumentWriter
object to receive the Text Watermark's output.DocumentWriter
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |