Package org.openpdf.text.pdf
Class PdfDashPattern
java.lang.Object
org.openpdf.text.pdf.PdfObject
org.openpdf.text.pdf.PdfArray
org.openpdf.text.pdf.PdfDashPattern
A
PdfDashPattern defines a dash pattern as described in the PDF Reference Manual version 1.3 p 325
(section 8.4.3).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatThis is the length of a dash.private floatThis is the length of a gap.private floatThis is the phase. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newPdfDashPattern.PdfDashPattern(float dash) Constructs a newPdfDashPattern.PdfDashPattern(float dash, float gap) Constructs a newPdfDashPattern.PdfDashPattern(float dash, float gap, float phase) Constructs a newPdfDashPattern. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(float n) voidtoPdf(PdfWriter writer, OutputStream os) Returns the PDF representation of thisPdfArray.Methods inherited from class org.openpdf.text.pdf.PdfArray
add, add, add, add, addFirst, contains, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getElements, getPdfObject, isEmpty, listIterator, remove, remove, set, size, toStringMethods inherited from class org.openpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
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()Constructs a newPdfDashPattern. -
PdfDashPattern
public PdfDashPattern(float dash) Constructs a newPdfDashPattern.- Parameters:
dash-dash
-
PdfDashPattern
public PdfDashPattern(float dash, float gap) Constructs a newPdfDashPattern. -
PdfDashPattern
public PdfDashPattern(float dash, float gap, float phase) Constructs a newPdfDashPattern.
-
-
Method Details
-
add
public void add(float n) -
toPdf
Returns the PDF representation of thisPdfArray.- Overrides:
toPdfin classPdfArray- Parameters:
writer- for backwards compatibilityos- theOutputStreamto write the bytes to.- Throws:
IOException- on error
-