Class PdfDashPattern
java.lang.Object
com.itextpdf.kernel.pdf.PdfDashPattern
Represents the line dash pattern. The line dash pattern shall control the pattern
of dashes and gaps used to stroke paths. It shall be specified by a dash, gap and
a dash phase.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new line dash pattern.PdfDashPattern(float dash) Creates a new line dash pattern.PdfDashPattern(float dash, float gap) Creates a new line dash pattern.PdfDashPattern(float dash, float gap, float phase) Creates a new line dash pattern. -
Method Summary
-
Field Details
-
dash
private float dashThis is the length of a dash. -
gap
private float gapThis is the length of a gap. -
phase
private float phaseThis is the phase.
-
-
Constructor Details
-
PdfDashPattern
public PdfDashPattern()Creates a new line dash pattern. -
PdfDashPattern
public PdfDashPattern(float dash) Creates a new line dash pattern.- Parameters:
dash- length of dash
-
PdfDashPattern
public PdfDashPattern(float dash, float gap) Creates a new line dash pattern.- Parameters:
dash- length of dashgap- length of gap
-
PdfDashPattern
public PdfDashPattern(float dash, float gap, float phase) Creates a new line dash pattern.- Parameters:
dash- length of dashgap- length of gapphase- this is the phase
-
-
Method Details
-
getDash
public float getDash()Gets dash of PdfDashPattern.- Returns:
- float value.
-
getGap
public float getGap()Gets gap of PdfDashPattern.- Returns:
- float value.
-
getPhase
public float getPhase()Gets phase of PdfDashPattern.- Returns:
- float value.
-