Package com.aowagie.text.pdf
Class PdfDashPattern
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.text.pdf.PdfArray
com.aowagie.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 float
This is the length of a dash.private final float
This is the length of a gap.private final float
This is the phase.Fields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newPdfDashPattern
.PdfDashPattern
(float dash) Constructs a newPdfDashPattern
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
toPdf
(PdfWriter writer, OutputStream os) Returns the PDF representation of thisPdfArray
.Methods inherited from class com.aowagie.text.pdf.PdfArray
add, add, add, add, addFirst, contains, getArrayList, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsString, getDirectObject, getPdfObject, isEmpty, listIterator, remove, set, size, toString
Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
Field Details
-
dash
private float dashThis is the length of a dash. -
gap
private final float gapThis is the length of a gap.- See Also:
-
phase
private final float phaseThis is the phase.- See Also:
-
-
Constructor Details
-
PdfDashPattern
public PdfDashPattern()Constructs a newPdfDashPattern
. -
PdfDashPattern
PdfDashPattern(float dash) Constructs a newPdfDashPattern
.
-
-
Method Details
-
toPdf
Returns the PDF representation of thisPdfArray
.- Overrides:
toPdf
in classPdfArray
- Parameters:
writer
- for backwards compatibilityos
- theOutputStream
to write the bytes to.- Throws:
IOException
- Exception with a I/O error
-