public class PolyLineAnnotation extends DrawingAnnotation
Modifier and Type | Method and Description |
---|---|
static PolyLineAnnotation |
create(Document targetDocument,
Path path,
Stroke stroke)
Create a poly-line annotation.
|
static PolyLineAnnotation |
createDynamicObject(long handle) |
LineEnding |
getEndStyle()
The ending point's style (Getter)
|
Paint |
getLineEndingFill()
The line ending filling paint for both start and end (Getter)
|
LineEnding |
getStartStyle()
The starting point's style (Getter)
|
getPaint, getPopup
getInfo, getLocked, getReplies
copy, getBoundingBox, getHidden, getNoPrint, getNoRotate, getNoZoom
equals, hashCode
public static PolyLineAnnotation createDynamicObject(long handle)
public static PolyLineAnnotation create(Document targetDocument, Path path, Stroke stroke) throws ConformanceException, UnsupportedFeatureException
targetDocument
- The output document with which the returned object is associated.path
- The path of the poly line.stroke
- The stroking parameters used for stroking the poly-line.
The stroking paint is used as the annotation's main paint.java.lang.IllegalArgumentException
- if the targetDocument
is null
java.lang.IllegalArgumentException
- if the targetDocument
has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
is read-onlyjava.lang.IllegalArgumentException
- if the path
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
's conformance is not PDF 2.0 and the path
argument contains curve-to operationsjava.lang.IllegalArgumentException
- if the path
argument contains close-subpath or rectangle operationsUnsupportedFeatureException
- if the targetDocument
's conformance is PDF 2.0 and the path
argument contains curve-to operationsjava.lang.IllegalArgumentException
- if the path
argument has not been constructed with a pdftoolbox.pdf.content.PathGenerator
java.lang.IllegalArgumentException
- if the stroke
argument is null
java.lang.IllegalArgumentException
- if the stroke
argument is not associated with the targetDocument
java.lang.IllegalArgumentException
- if the stroke
's pdftoolbox.pdf.content.Stroke.getPaint
has a pdftoolbox.pdf.content.Paint.getColorSpace
other than a device color spacejava.lang.IllegalArgumentException
- if the stroke
's pdftoolbox.pdf.content.Stroke.getPaint
has a non-null
pdftoolbox.pdf.content.Paint.getTransparency
with pdftoolbox.pdf.content.Transparency.getBlendMode
other than pdftoolbox.pdf.content.BlendMode.NORMAL
java.lang.IllegalArgumentException
- if the stroke
argument's pdftoolbox.pdf.content.Stroke.getLineCapStyle
is other than pdftoolbox.pdf.content.LineCapStyle.BUTT
java.lang.IllegalArgumentException
- if the stroke
argument's pdftoolbox.pdf.content.Stroke.getLineJoinStyle
is other than pdftoolbox.pdf.content.LineJoinStyle.MITER
java.lang.IllegalArgumentException
- if the stroke
argument's pdftoolbox.pdf.content.Stroke.getMiterLimit
is other than 10java.lang.IllegalArgumentException
- if the stroke
argument's pdftoolbox.pdf.content.Stroke.getDashPhase
is other than 0ConformanceException
- if the explicitly requested PDF conformance is smaller than PDF 1.5public LineEnding getStartStyle()
java.lang.IllegalStateException
- if the object has already been closedpublic LineEnding getEndStyle()
java.lang.IllegalStateException
- if the object has already been closedpublic Paint getLineEndingFill()
java.lang.IllegalStateException
- if the object has already been closed