Package com.pdftools.toolbox.pdf.content
Class PathElement
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.content.ContentElement
-
- com.pdftools.toolbox.pdf.content.PathElement
-
public class PathElement extends ContentElement
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getAlignmentBox()
the box for alignment (Getter)Fill
getFill()
This path element's parameters for filling the path ornull
if the path is not filled.Path
getPath()
This path element's path object.Stroke
getStroke()
This path element's parameters for stroking the path ornull
if the path is not stroked.-
Methods inherited from class com.pdftools.toolbox.pdf.content.ContentElement
copy, getBoundingBox, getTransform, setTransform
-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getAlignmentBox
public Rectangle getAlignmentBox()
the box for alignment (Getter)
This is a rectangle that may not encompass all parts of an element, but is usefull for alignment.- Throws:
java.lang.IllegalStateException
- the object has already been closed
-
getPath
public Path getPath()
This path element's path object.- Throws:
java.lang.IllegalStateException
- the object has already been closed
-
getStroke
public Stroke getStroke()
This path element's parameters for stroking the path ornull
if the path is not stroked.- Throws:
java.lang.IllegalStateException
- the object has already been closed
-
getFill
public Fill getFill()
This path element's parameters for filling the path ornull
if the path is not filled.- Throws:
java.lang.IllegalStateException
- the object has already been closed
-
-