public class Polygon extends PolyLine
Annot.BorderStyle
e_PolygonCloud, e_PolygonDimension, e_PolyLineDimension, 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 |
---|
Polygon()
Creates an empty Polygon annotation.
|
Polygon(Annot annot)
Creates a PolyLine annotation and initialize it using given annotation object.
|
Polygon(Obj obj)
Creates a Polygon annotation and initialize it using given Cos/SDF object.
|
Modifier and Type | Method and Description |
---|---|
static Polygon |
createPolygon(Doc doc,
Rect pos)
Creates a new Polygon annotation, in the specified document.
|
createPolyLine, getIntentName, getVertex, getVertexCount, setIntentName, setVertex
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 Polygon()
public Polygon(Annot annot) throws PDFNetException
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
annot
- The annotation objectPDFNetException
public Polygon(Obj obj)
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
obj
- The input Cos/SDF object.public static Polygon createPolygon(Doc doc, Rect pos) throws PDFNetException
doc
- A document to which the Polygon annotation is added.pos
- A rectangle specifying the Polygon annotation's bounds, specified in
user space coordinates.PDFNetException