COSObjectable
public class FDFAnnotationFreeText extends FDFAnnotation
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
SUBTYPE |
COS Model value for SubType entry.
|
annot
Constructor | Description |
---|---|
FDFAnnotationFreeText() |
Default constructor.
|
FDFAnnotationFreeText(COSDictionary a) |
Constructor.
|
FDFAnnotationFreeText(org.w3c.dom.Element element) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
float[] |
getCallout() |
This will get the coordinates of the callout line.
|
java.lang.String |
getDefaultAppearance() |
Get the default appearance string.
|
java.lang.String |
getDefaultStyle() |
Get the default style string.
|
PDRectangle |
getFringe() |
This will get the fringe.
|
java.lang.String |
getJustification() |
This will get the form of quadding (justification) of the annotation text.
|
java.lang.String |
getLineEndingStyle() |
This will retrieve the line ending style.
|
java.lang.String |
getRotation() |
This will get the clockwise rotation in degrees.
|
void |
setCallout(float[] callout) |
This will set the coordinates of the callout line.
|
void |
setDefaultAppearance(java.lang.String appearance) |
Set the default appearance string.
|
void |
setDefaultStyle(java.lang.String style) |
Set the default style string.
|
void |
setFringe(PDRectangle fringe) |
This will set the fringe rectangle.
|
void |
setJustification(java.lang.String justification) |
This will set the form of quadding (justification) of the annotation text.
|
void |
setLineEndingStyle(java.lang.String style) |
This will set the line ending style.
|
void |
setRotation(int rotation) |
This will set the clockwise rotation in degrees.
|
create, getBorderEffect, getBorderStyle, getColor, getContents, getCOSObject, getCreationDate, getDate, getIntent, getName, getOpacity, getPage, getRectangle, getRichContents, getStringOrStream, getSubject, getTitle, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setBorderEffect, setBorderStyle, setColor, setContents, setCreationDate, setDate, setHidden, setIntent, setInvisible, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPage, setPrinted, setReadOnly, setRectangle, setRichContents, setSubject, setTitle, setToggleNoView
public static final java.lang.String SUBTYPE
public FDFAnnotationFreeText()
public FDFAnnotationFreeText(COSDictionary a)
a
- An existing FDF Annotation.public FDFAnnotationFreeText(org.w3c.dom.Element element) throws java.io.IOException
element
- An XFDF element.java.io.IOException
- If there is an error extracting information from the element.public void setCallout(float[] callout)
callout
- An array of four or six numbers specifying a callout line attached to the free
text annotation. Six numbers [ x1 y1 x2 y2 x3 y3 ] represent the starting, knee point, and
ending coordinates of the line in default user space, Four numbers [ x1 y1 x2 y2 ] represent
the starting and ending coordinates of the line.public float[] getCallout()
public final void setJustification(java.lang.String justification)
justification
- The quadding of the text.public java.lang.String getJustification()
public final void setRotation(int rotation)
rotation
- The number of degrees of clockwise rotation.public java.lang.String getRotation()
public final void setDefaultAppearance(java.lang.String appearance)
appearance
- The new default appearance string.public java.lang.String getDefaultAppearance()
public final void setDefaultStyle(java.lang.String style)
style
- The new default style string.public java.lang.String getDefaultStyle()
public final void setFringe(PDRectangle fringe)
fringe
- the fringepublic PDRectangle getFringe()
public final void setLineEndingStyle(java.lang.String style)
style
- The new style.public java.lang.String getLineEndingStyle()
Copyright © 2002–2018. All rights reserved.