public class LineDashPattern extends Object
Modifier and Type | Class and Description |
---|---|
class |
LineDashPattern.DashArrayElem |
Constructor and Description |
---|
LineDashPattern(PdfArray dashArray, float dashPhase)
Creates new LineDashPattern object.
|
Modifier and Type | Method and Description |
---|---|
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(PdfArray dashArray)
Setter for the dash array.
|
void |
setDashPhase(float dashPhase)
Setter for the dash phase.
|
public LineDashPattern(PdfArray dashArray, float dashPhase)
LineDashPattern
object.
dashArray
- The dash array. See getDashArray()
dashPhase
- The dash phase. See getDashPhase()
public PdfArray getDashArray()
public void setDashArray(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()
Copyright © 2016. All rights reserved.