public class LineDashPattern extends Object
Modifier and Type | Class and Description |
---|---|
class |
LineDashPattern.DashArrayElem |
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) |
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.
|
LineDashPattern.DashArrayElem |
next()
Calculates and returns the next element which is either gap or dash.
|
void |
reset()
Resets the dash array so that the next() method will start from the beginning of the dash array.
|
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()
public void setDashArray(com.itextpdf.kernel.pdf.PdfArray dashArray)
getDashArray()
dashArray
- New dash array.
public float getDashPhase()
public void setDashPhase(float dashPhase)
getDashArray()
dashPhase
- New dash phase.
public LineDashPattern.DashArrayElem next()
public void reset()
next()
method will start from the beginning of the dash array.
public boolean isSolid()
public static com.itextpdf.kernel.geom.Path applyDashPattern(com.itextpdf.kernel.geom.Path path, LineDashPattern lineDashPattern)
Copyright © 1998–2019 iText Group NV. All rights reserved.