public class FreeText extends Markup
Annot.BorderStyle| Modifier and Type | Field and Description |
|---|---|
static int |
e_FreeText
This integer list spedifies the intention of the FreeText annotation
e_FreeText - The annotation ntended to function as a plain free-text annotation.
|
static int |
e_FreeTextCallout
The Constant e_FreeTextCallout.
|
static int |
e_FreeTextTypeWriter
The Constant e_FreeTextTypeWriter.
|
static int |
e_Unknown
The Constant e_Unknown.
|
e_3D, e_Caret, e_Circle, e_down, e_FileAttachment, e_hidden, e_Highlight, e_Ink, e_invisible, e_Line, e_Link, e_locked, e_locked_contents, e_Movie, e_no_rotate, e_no_view, e_no_zoom, e_normal, e_Polygon, e_Polyline, e_Popup, e_print, e_PrinterMark, e_Projection, e_read_only, e_Redact, e_RichMedia, e_rollover, e_Screen, e_Sound, e_Square, e_Squiggly, e_Stamp, e_StrikeOut, e_Text, e_toggle_no_view, e_TrapNet, e_Underline, e_Watermark, e_Widget| Constructor and Description |
|---|
FreeText()
Creates an empty FreeText annotation.
|
FreeText(Annot annot)
Creates an FreeText annotation and initialize it using given annotation object.
|
FreeText(Obj d)
Creates an FreeText annotation and initialize it using given Cos/SDF object.
|
| Modifier and Type | Method and Description |
|---|---|
static FreeText |
create(Doc doc,
Rect pos)
Creates a new FreeText annotation, in the specified document.
|
Point |
getCalloutLinePoint1()
Get p1 of the callout line points of the FreeText annotation.
|
Point |
getCalloutLinePoint2()
Get p2 of the callout line points of the FreeText annotation.
|
Point |
getCalloutLinePoint3()
Get p3 of the callout line points of the FreeText annotation.
|
java.lang.String |
getDefaultAppearance()
Get the default appearance of the FreeText annotation.
|
int |
getEndingStyle()
Get the ending style of the callout line of the FreeText Annotation.
|
double |
getFontSize()
Returns the font size of the FreeText Annotation.
|
int |
getIntentName()
Get the Intent name as an entry from the enum "IntentName"
of the annnotation type.
|
ColorPt |
getLineColor()
Returns the line and border color of the FreeText Annotation.
|
int |
getLineColorCompNum()
Returns the number of color components in the line and border color
of the FreeText Annotation.
|
int |
getQuaddingFormat()
Get the quading format of the FreeText annotation.
|
ColorPt |
getTextColor()
Returns the text color of the FreeText Annotation.
|
int |
getTextColorCompNum()
Returns the number of color components in the line and border color
of the FreeText Annotation.
|
void |
setCalloutLinePoints(Point p1,
Point p2,
Point p3)
Set the callout line points of the FreeText annotation.
|
void |
setDefaultAppearance(java.lang.String app_str)
Set the default appearance of the FreeText annotation.
|
void |
setFontSize(double font_size)
Sets the font size of the FreeText Annotation.
|
void |
setIntentName(int mode)
Set the Intent name as an entry from the enum "IntentName"
of the annnotation type.
|
void |
setLineColor(ColorPt color,
int col_comp)
Set the line and border color of the FreeText Annotation.
|
void |
setQuaddingFormat(int app_qform)
Set the quading format of the FreeText annotation.
|
void |
setTextColor(ColorPt color,
int col_comp)
Set the text color of the FreeText Annotation.
|
getBorderEffect, getBorderEffectIntensity, getContentRect, getCreationDates, getInteriorColor, getInteriorColorCompNum, getOpacity, getPadding, getPopup, getSubject, getTitle, setBorderEffect, SetBorderEffectIntensity, setContentRect, setCreationDates, setInteriorColor, setOpacity, SetPadding, setPopup, setSubject, setTitle__Create, __GetHandle, __GetRefHandle, create, equals, flatten, getActiveAppearanceState, getAppearance, getAppearance, getAppearance, getBorderStyle, getColorAsCMYK, getColorAsGray, getColorAsRGB, getColorCompNum, getContents, getDate, getFlag, getOptionalContent, getPage, getRect, getSDFObj, GetStructParent, getType, getUniqueID, isMarkup, isValid, refreshAppearance, removeAppearance, resize, setActiveAppearanceState, setAppearance, setAppearance, setAppearance, setBorderStyle, setColor, setContents, setDate, setFlag, setOptionalContent, setPage, setRect, setStructParent, setUniqueIDpublic static final int e_FreeText
public static final int e_FreeTextCallout
public static final int e_FreeTextTypeWriter
public static final int e_Unknown
public FreeText(Obj d)
d - input Cos/SDF objectpublic FreeText()
public FreeText(Annot annot) throws PDFNetException
annot - input annotation objectPDFNetExceptionpublic static FreeText create(Doc doc, Rect pos) throws PDFNetException
doc - A document to which the FreeText annotation is added.pos - A rectangle specifying the FreeText annotation's bounds, specified in
user space coordinates.PDFNetExceptionpublic java.lang.String getDefaultAppearance()
throws PDFNetException
PDFNetExceptionpublic void setDefaultAppearance(java.lang.String app_str)
throws PDFNetException
app_str - A string representing the default appearance of the FreeText annotation.PDFNetExceptionpublic int getQuaddingFormat()
throws PDFNetException
PDFNetExceptionpublic void setQuaddingFormat(int app_qform)
throws PDFNetException
app_qform - the new quadding formatPDFNetExceptionpublic Point getCalloutLinePoint1() throws PDFNetException
PDFNetExceptionpublic Point getCalloutLinePoint2() throws PDFNetException
PDFNetExceptionpublic Point getCalloutLinePoint3() throws PDFNetException
PDFNetExceptionpublic void setCalloutLinePoints(Point p1, Point p2, Point p3) throws PDFNetException
p1 - The staring point.p2 - The ending point.p3 - The kee point.PDFNetExceptionpublic int getIntentName()
throws PDFNetException
PDFNetExceptionpublic void setIntentName(int mode)
throws PDFNetException
mode - The intent name of the annotation as
an entry from the enum "IntentJName".PDFNetExceptionpublic int getEndingStyle()
throws PDFNetException
PDFNetExceptionpublic void setTextColor(ColorPt color, int col_comp) throws PDFNetException
color - ColorPt object representing the color.col_comp - number of colorant components in ColorPt object.PDFNetExceptionpublic ColorPt getTextColor() throws PDFNetException
PDFNetExceptionpublic int getTextColorCompNum()
throws PDFNetException
PDFNetExceptionpublic void setLineColor(ColorPt color, int col_comp) throws PDFNetException
color - ColorPt object representing the color.col_comp - number of colorant components in ColorPt object.PDFNetExceptionpublic ColorPt getLineColor() throws PDFNetException
PDFNetExceptionpublic int getLineColorCompNum()
throws PDFNetException
PDFNetExceptionpublic void setFontSize(double font_size)
throws PDFNetException
font_size - font sizePDFNetExceptionpublic double getFontSize()
throws PDFNetException
PDFNetException