public class FDFAnnotationFreeText extends FDFAnnotation
Modifier and Type | Field and Description |
---|---|
static String |
SUBTYPE
COS Model value for SubType entry.
|
annot
Constructor and Description |
---|
FDFAnnotationFreeText()
Default constructor.
|
FDFAnnotationFreeText(COSDictionary a)
Constructor.
|
FDFAnnotationFreeText(Element element)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float[] |
getCallout()
This will get the coordinates of the the callout line.
|
String |
getDefaultAppearance()
Get the default appearance string.
|
String |
getDefaultStyle()
Get the default style string.
|
PDRectangle |
getFringe()
This will get the fringe.
|
String |
getJustification()
This will get the form of quadding (justification) of the annotation text.
|
String |
getLineEndingStyle()
This will retrieve the line ending style.
|
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(String appearance)
Set the default appearance string.
|
void |
setDefaultStyle(String style)
Set the default style string.
|
void |
setFringe(PDRectangle fringe)
This will set the fringe rectangle.
|
void |
setJustification(String justification)
This will set the form of quadding (justification) of the annotation text.
|
void |
setLineEndingStyle(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 String SUBTYPE
public FDFAnnotationFreeText()
public FDFAnnotationFreeText(COSDictionary a)
a
- An existing FDF Annotation.public FDFAnnotationFreeText(Element element) throws IOException
element
- An XFDF element.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(String justification)
justification
- The quadding of the text.public String getJustification()
public final void setRotation(int rotation)
rotation
- The number of degrees of clockwise rotation.public String getRotation()
public final void setDefaultAppearance(String appearance)
appearance
- The new default appearance string.public String getDefaultAppearance()
public final void setDefaultStyle(String style)
style
- The new default style string.public String getDefaultStyle()
public final void setFringe(PDRectangle fringe)
fringe
- the fringepublic PDRectangle getFringe()
public final void setLineEndingStyle(String style)
style
- The new style.public String getLineEndingStyle()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.