public class PdfDashPattern extends PdfArray
PdfDashPattern
defines a dash pattern as described in
the PDF Reference Manual version 1.3 p 325 (section 8.4.3).PdfArray
Modifier and Type | Field and Description |
---|---|
private float |
dash
This is the length of a dash.
|
private float |
gap
This is the length of a gap.
|
private float |
phase
This is the phase.
|
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
void |
add(float n) |
void |
toPdf(PdfWriter writer,
OutputStream os)
Returns the PDF representation of this
PdfArray . |
add, add, add, add, addFirst, contains, getArrayList, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getPdfObject, isEmpty, iterator, listIterator, remove, set, size, toString
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
private float dash
private float gap
private float phase
public PdfDashPattern()
PdfDashPattern
.public PdfDashPattern(float dash)
PdfDashPattern
.public PdfDashPattern(float dash, float gap)
PdfDashPattern
.public PdfDashPattern(float dash, float gap, float phase)
PdfDashPattern
.public void add(float n)
public void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfArray
.toPdf
in class PdfArray
writer
- for backwards compatibilityos
- the OutputStream
to write the bytes to.IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses