public abstract class PdfPolyGeomAnnotation extends PdfMarkupAnnotation
Modifier and Type | Field and Description |
---|---|
static PdfName |
Polygon
Deprecated.
, use
PdfName.Polygon instead.
|
static PdfName |
PolyLine
Deprecated.
, use
PdfName.PolyLine instead.
|
inReplyTo, popup
Accepted, Canceled, Completed, HIDDEN, HIGHLIGHT_INVERT, HIGHLIGHT_NONE, HIGHLIGHT_OUTLINE, HIGHLIGHT_PUSH, HIGHLIGHT_TOGGLE, INVISIBLE, LOCKED, LOCKED_CONTENTS, Marked, MarkedModel, NO_ROTATE, NO_VIEW, NO_ZOOM, None, page, PRINT, READ_ONLY, Rejected, ReviewModel, STYLE_BEVELED, STYLE_DASHED, STYLE_INSET, STYLE_SOLID, STYLE_UNDERLINE, TOGGLE_NO_VIEW, Unmarked
Modifier | Constructor and Description |
---|---|
protected |
PdfPolyGeomAnnotation(PdfDictionary pdfObject)
Instantiates a new PdfPolyGeomAnnotation instance based on PdfDictionary instance, that represents existing annotation object in the document.
|
Modifier and Type | Method and Description |
---|---|
static PdfPolyGeomAnnotation |
createPolygon(Rectangle rect, float[] vertices) |
static PdfPolyGeomAnnotation |
createPolyLine(Rectangle rect, float[] vertices) |
PdfDictionary |
getBorderEffect()
Gets a border effect dictionary that specifies an effect that shall be applied to the border of the annotations.
|
PdfDictionary |
getBorderStyle()
The dictionaries for some annotation types (such as free text and polygon annotations) can include the BS entry.
|
Color |
getInteriorColor()
The interior color which is used to fill the annotation's line endings.
|
PdfArray |
getLineEndingStyles() |
PdfDictionary |
getMeasure() |
PdfArray |
getPath()
PDF 2.0.
|
PdfArray |
getVertices() |
PdfPolyGeomAnnotation |
setBorderEffect(PdfDictionary borderEffect)
Sets a border effect dictionary that specifies an effect that shall be applied to the border of the annotations.
|
PdfPolyGeomAnnotation |
setBorderStyle(PdfDictionary borderStyle)
Sets border style dictionary that has more settings than the array specified for the Border entry ( PdfAnnotation.getBorder() ).
|
PdfPolyGeomAnnotation |
setBorderStyle(PdfName style)
Setter for the annotation's preset border style.
|
PdfPolyGeomAnnotation |
setDashPattern(PdfArray dashPattern)
Setter for the annotation's preset dashed border style.
|
PdfPolyGeomAnnotation |
setInteriorColor(float[] interiorColor)
An array of numbers in the range 0.0 to 1.0 specifying the interior color which is used to fill the annotation's line endings.
|
PdfPolyGeomAnnotation |
setInteriorColor(PdfArray interiorColor)
An array of numbers in the range 0.0 to 1.0 specifying the interior color which is used to fill the annotation's line endings.
|
PdfPolyGeomAnnotation |
setLineEndingStyles(PdfArray lineEndingStyles) |
PdfPolyGeomAnnotation |
setMeasure(PdfDictionary measure) |
PdfPolyGeomAnnotation |
setPath(PdfArray path)
PDF 2.0.
|
PdfPolyGeomAnnotation |
setVertices(float[] vertices) |
PdfPolyGeomAnnotation |
setVertices(PdfArray vertices) |
getCreationDate, getExternalData, getInReplyTo, getInReplyToObject, getIntent, getOpacity, getPopup, getPopupObject, getReplyType, getRichText, getSubject, getText, setCreationDate, setExternalData, setExternalData, setInReplyTo, setIntent, setOpacity, setPopup, setReplyType, setRichText, setSubject, setText
addAssociatedFile, flush, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getAssociatedFiles, getBlendMode, getBorder, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getLang, getName, getNonStrokingOpacity, getNormalAppearanceObject, getPage, getPageObject, getRectangle, getRolloverAppearanceObject, getStrokingOpacity, getStructParentIndex, getSubtype, getTitle, hasFlag, isWrappedObjectMustBeIndirect, makeAnnotation, put, remove, resetFlag, setAppearance, setAppearance, setAppearanceState, setBlendMode, setBorder, setBorder, setColor, setColor, setColor, setContents, setContents, setDate, setDownAppearance, setDownAppearance, setFlag, setFlags, setLang, setLayer, setName, setNonStrokingOpacity, setNormalAppearance, setNormalAppearance, setPage, setRectangle, setRolloverAppearance, setRolloverAppearance, setStrokingOpacity, setStructParentIndex, setTitle
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
@Deprecated public static final PdfName Polygon
PdfName.Polygon
instead.
@Deprecated public static final PdfName PolyLine
PdfName.PolyLine
instead.
protected PdfPolyGeomAnnotation(PdfDictionary pdfObject)
PdfPolyGeomAnnotation
instance based on PdfDictionary
instance, that represents existing annotation object in the document.
pdfObject
- the PdfDictionary
representing annotation object
PdfAnnotation.makeAnnotation(PdfObject)
public static PdfPolyGeomAnnotation createPolygon(Rectangle rect, float[] vertices)
public static PdfPolyGeomAnnotation createPolyLine(Rectangle rect, float[] vertices)
public PdfArray getVertices()
public PdfPolyGeomAnnotation setVertices(PdfArray vertices)
public PdfPolyGeomAnnotation setVertices(float[] vertices)
public PdfArray getLineEndingStyles()
public PdfPolyGeomAnnotation setLineEndingStyles(PdfArray lineEndingStyles)
public PdfDictionary getMeasure()
public PdfPolyGeomAnnotation setMeasure(PdfDictionary measure)
public PdfArray getPath()
null
if path is not set
public PdfPolyGeomAnnotation setPath(PdfArray path)
path
- the path to set
PdfPolyGeomAnnotation
instance
public PdfDictionary getBorderStyle()
PdfAnnotation.getBorder()
). If an annotation dictionary includes the BS entry, then the Border entry is ignored. If annotation includes AP (see PdfAnnotation.getAppearanceDictionary()
) it takes precedence over the BS entry. For more info on BS entry see ISO-320001, Table 166.
PdfDictionary
which is a border style dictionary or null if it is not specified.
public PdfPolyGeomAnnotation setBorderStyle(PdfDictionary borderStyle)
PdfAnnotation.getBorder()
). See ISO-320001, Table 166 and getBorderStyle()
for more info.
borderStyle
- a border style dictionary specifying the line width and dash pattern that shall be used in drawing the annotation’s border.
PdfPolyGeomAnnotation
instance.
public PdfPolyGeomAnnotation setBorderStyle(PdfName style)
PdfAnnotation.STYLE_SOLID
- A solid rectangle surrounding the annotation. PdfAnnotation.STYLE_DASHED
- A dashed rectangle surrounding the annotation. PdfAnnotation.STYLE_BEVELED
- A simulated embossed rectangle that appears to be raised above the surface of the page. PdfAnnotation.STYLE_INSET
- A simulated engraved rectangle that appears to be recessed below the surface of the page. PdfAnnotation.STYLE_UNDERLINE
- A single line along the bottom of the annotation rectangle. style
- The new value for the annotation's border style.
PdfPolyGeomAnnotation
instance.
getBorderStyle()
public PdfPolyGeomAnnotation setDashPattern(PdfArray dashPattern)
PdfAnnotation.STYLE_DASHED
style was used for the annotation border style (see setBorderStyle(PdfName)
. See ISO-320001 8.4.3.6, "Line Dash Pattern" for the format in which dash pattern shall be specified.
dashPattern
- a dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border.
PdfPolyGeomAnnotation
instance.
public PdfDictionary getBorderEffect()
PdfDictionary
, which is a border effect dictionary (see ISO-320001, Table 167).
public PdfPolyGeomAnnotation setBorderEffect(PdfDictionary borderEffect)
borderEffect
- a PdfDictionary
which contents shall be specified in accordance to ISO-320001, Table 167.
PdfPolyGeomAnnotation
instance.
public Color getInteriorColor()
Color
of either DeviceGray
, DeviceRgb
or DeviceCmyk
type which defines interior color of the annotation, or null if interior color is not specified.
public PdfPolyGeomAnnotation setInteriorColor(PdfArray interiorColor)
interiorColor
- a PdfArray
of numbers in the range 0.0 to 1.0. The number of array elements determines the colour space in which the colour is defined: 0 - No colour, transparent; 1 - DeviceGray, 3 - DeviceRGB, 4 - DeviceCMYK. For the PdfRedactAnnotation
number of elements shall be equal to 3 (which defines DeviceRGB colour space).
PdfPolyGeomAnnotation
instance.
public PdfPolyGeomAnnotation setInteriorColor(float[] interiorColor)
interiorColor
- an array of floats in the range 0.0 to 1.0.
PdfPolyGeomAnnotation
instance.
Copyright © 1998–2023 iText Group NV. All rights reserved.