public class PolyLine extends Line
Annot.BorderStyle
Modifier and Type | Field and Description |
---|---|
static int |
e_PolygonCloud
This integer list specifies the intention of the PolyLine annotation
e_PolygonCloud - The annotation is intended to function as a cloud object.
|
static int |
e_PolygonDimension
The Constant e_PolygonDimension.
|
static int |
e_PolyLineDimension
The Constant e_PolyLineDimension.
|
static int |
e_Unknown
The Constant e_Unknown.
|
e_Butt, e_Circle, e_ClosedArrow, e_Diamond, e_Inline, e_LineArrow, e_LineDimension, e_None, e_null, e_OpenArrow, e_RClosedArrow, e_ROpenArrow, e_Slash, e_Square, e_Top
e_3D, e_action_trigger_activate, e_action_trigger_annot_blur, e_action_trigger_annot_down, e_action_trigger_annot_enter, e_action_trigger_annot_exit, e_action_trigger_annot_focus, e_action_trigger_annot_page_close, e_action_trigger_annot_page_invisible, e_action_trigger_annot_page_open, e_action_trigger_annot_page_visible, e_action_trigger_annot_up, e_Caret, e_down, e_FileAttachment, e_FreeText, 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_Squiggly, e_Stamp, e_StrikeOut, e_Text, e_toggle_no_view, e_TrapNet, e_Underline, e_Watermark, e_Widget
Constructor and Description |
---|
PolyLine()
Creates an empty PolyLine annotation.
|
PolyLine(Annot annot)
Creates a PolyLine annotation and initialize it using given annotation object.
|
PolyLine(Obj d)
Creates a PolyLine annotation and initialize it using given Cos/SDF object.
|
Modifier and Type | Method and Description |
---|---|
static PolyLine |
createPolyLine(Doc doc,
Rect pos)
Creates a new PolyLine annotation, in the specified document.
|
int |
getIntentName()
Get the Intent name as an entry from the enum "IntentName"
of the annnotation type.
|
Point |
getVertex(int idx)
Get the vertex(in Point object form) corresponding to the index
within the VErtices array.
|
int |
getVertexCount()
Get the number of vertices in the Vertices array.
|
void |
setIntentName(int mode)
Set the Intent name as an entry from the enum "IntentName"
of the annnotation type.
|
void |
setVertex(int idx,
Point pt)
Set the vertex(in Point object form) corresponding to the index
within the VErtices array.
|
create, getCaptionPosition, getEndPoint, getEndStyle, getIntentType, getLeaderLineExtensionLength, getLeaderLineLength, getLeaderLineOffset, getShowCaption, getStartPoint, getStartStyle, getTextHOffset, getTextVOffset, setCapPos, setEndPoint, setEndStyle, setIntentType, setLeaderLineExtensionLength, setLeaderLineLength, setLeaderLineOffset, setShowCaption, setStartPoint, setStartStyle, setTextHOffset, setTextVOffset
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, getRotation, getSDFObj, GetStructParent, getTriggerAction, getType, getUniqueID, getVisibleContentBox, isMarkup, isValid, refreshAppearance, removeAppearance, resize, setActiveAppearanceState, setAppearance, setAppearance, setAppearance, setBorderStyle, setColor, setContents, setDate, setFlag, setOptionalContent, setPage, setRect, setRotation, setStructParent, setUniqueID
public static final int e_PolygonCloud
public static final int e_PolyLineDimension
public static final int e_PolygonDimension
public static final int e_Unknown
public PolyLine(Obj d)
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
d
- the input Cos/SDF objectpublic PolyLine()
public PolyLine(Annot annot) throws PDFNetException
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
annot
- the annotPDFNetException
public static PolyLine createPolyLine(Doc doc, Rect pos) throws PDFNetException
doc
- A document to which the PolyLine annotation is added.pos
- A rectangle specifying the PolyLine annotation's bounds, specified in
user space coordinates.PDFNetException
public int getVertexCount() throws PDFNetException
Note: The Vertices array is An array of numbers specifying the width and dash pattern that shall represent each vertex in default user space in Point form,
PDFNetException
public Point getVertex(int idx) throws PDFNetException
Note: The Vertices array is An array of numbers specifying the width and dash pattern that shall represent each vertex in default user space in Point form,
idx
- The index position where the vertex is located.PDFNetException
public void setVertex(int idx, Point pt) throws PDFNetException
Note: The Vertices array is An array of numbers specifying the width and dash pattern that shall represent each vertex in default user space in Point form,
idx
- The index position where the vertex is to be located.pt
- A Point object corresponding to the vertex to be added to the array.PDFNetException
public int getIntentName() throws PDFNetException
Note: The intent name describes the intent of the polygon or polyline annotation. The following values shall bevalid:
PDFNetException
public void setIntentName(int mode) throws PDFNetException
Note: The intent name describes the intent of the polygon or polyline annotation. The following values shall bevalid: e_PolygonCloud - The annotation is intended to function as a cloud object. e_PolyLineDimension(PDF 1.7) - The polyline annotation is intended to function as a dimension. e_PolygonDimension(PDF 1.7) - The polygon annotation is intended to function as a dimension.
mode
- The intent name of the annotation using
an entry from the enum "IntentName".PDFNetException