com.lowagie.text.pdf

Class PdfDashPattern

public class PdfDashPattern extends PdfArray

A PdfDashPattern defines a dash pattern as described in the PDF Reference Manual version 1.3 p 325 (section 8.4.3).

See Also: PdfArray

Field Summary
floatdash
This is the length of a dash.
floatgap
This is the length of a gap.
floatphase
This is the phase.
Constructor Summary
PdfDashPattern()
Constructs a new PdfDashPattern.
PdfDashPattern(float dash)
Constructs a new PdfDashPattern.
PdfDashPattern(float dash, float gap)
Constructs a new PdfDashPattern.
PdfDashPattern(float dash, float gap, float phase)
Constructs a new PdfDashPattern.
Method Summary
voidadd(float n)
voidtoPdf(PdfWriter writer, OutputStream os)
Returns the PDF representation of this PdfArray.

Field Detail

dash

private float dash
This is the length of a dash.

gap

private float gap
This is the length of a gap.

phase

private float phase
This is the phase.

Constructor Detail

PdfDashPattern

public PdfDashPattern()
Constructs a new PdfDashPattern.

PdfDashPattern

public PdfDashPattern(float dash)
Constructs a new PdfDashPattern.

PdfDashPattern

public PdfDashPattern(float dash, float gap)
Constructs a new PdfDashPattern.

PdfDashPattern

public PdfDashPattern(float dash, float gap, float phase)
Constructs a new PdfDashPattern.

Method Detail

add

public void add(float n)

toPdf

public void toPdf(PdfWriter writer, OutputStream os)
Returns the PDF representation of this PdfArray.

Returns: an array of bytes