Class PdfDashPattern
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfArray
com.itextpdf.text.pdf.PdfDashPattern
- All Implemented Interfaces:
Serializable, Iterable<PdfObject>
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
-
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 PdfArray
add, add, add, add, addFirst, asDoubleArray, asLongArray, contains, getArrayList, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getPdfObject, isEmpty, iterator, listIterator, remove, set, size, toStringMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, typeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
PdfDashPattern
public PdfDashPattern()Constructs a newPdfDashPattern. -
PdfDashPattern
public PdfDashPattern(float dash) Constructs a newPdfDashPattern. -
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
-