public class LineDashPattern extends Object
Modifier and Type | Class and Description |
---|---|
class |
LineDashPattern.DashArrayElem
Class representing a single element of a dash array
|
Constructor and Description |
---|
LineDashPattern(com.itextpdf.kernel.pdf.PdfArray dashArray, float dashPhase)
Creates new LineDashPattern object.
|
Modifier and Type | Method and Description |
---|---|
static com.itextpdf.kernel.geom.Path |
applyDashPattern(com.itextpdf.kernel.geom.Path path, LineDashPattern lineDashPattern)
Apply a LineDashPattern along a Path
|
com.itextpdf.kernel.pdf.PdfArray |
getDashArray()
Getter for the dash array.
|
float |
getDashPhase()
Getter for the dash phase.
|
boolean |
isSolid()
Checks whether the dashed pattern is solid or not.
|
void |
setDashArray(com.itextpdf.kernel.pdf.PdfArray dashArray)
Setter for the dash array.
|
void |
setDashPhase(float dashPhase)
Setter for the dash phase.
|
public LineDashPattern(com.itextpdf.kernel.pdf.PdfArray dashArray, float dashPhase)
LineDashPattern
object.
dashArray
- The dash array. See getDashArray()
dashPhase
- The dash phase. See getDashPhase()
public com.itextpdf.kernel.pdf.PdfArray getDashArray()
The dash array’s elements is number that specify the lengths of alternating dashes and gaps; the numbers are nonnegative. The elements are expressed in user space units.
public void setDashArray(com.itextpdf.kernel.pdf.PdfArray dashArray)
getDashArray()
dashArray
- New dash array.
public float getDashPhase()
The dash phase shall specify the distance into the dash pattern at which to start the dash. The elements are expressed in user space units.
public void setDashPhase(float dashPhase)
getDashArray()
dashPhase
- New dash phase.
public boolean isSolid()
public static com.itextpdf.kernel.geom.Path applyDashPattern(com.itextpdf.kernel.geom.Path path, LineDashPattern lineDashPattern)
path
- input path
lineDashPattern
- input LineDashPattern
Copyright © 1998–2019 iText Group NV. All rights reserved.