public class PdfVisibilityExpression extends PdfArray
Modifier and Type | Field and Description |
---|---|
static int |
AND
A boolean operator.
|
static int |
NOT
A boolean operator.
|
static int |
OR
A boolean operator.
|
Constructor and Description |
---|
PdfVisibilityExpression(int type)
Creates a visibility expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(float[] values)
Adds an array of float values to end of the PdfArray .
|
boolean |
add(int[] values)
Adds an array of int values to end of the PdfArray .
|
void |
add(int index, PdfObject element)
Inserts the specified element at the specified position.
|
boolean |
add(PdfObject object)
Adds a PdfObject to the end of the PdfArray .
|
void |
addFirst(PdfObject object)
Inserts a PdfObject at the beginning of the PdfArray .
|
asDoubleArray, asLongArray, contains, getArrayList, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getPdfObject, isEmpty, iterator, listIterator, remove, set, size, toPdf, 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
public static final int OR
public static final int AND
public static final int NOT
public PdfVisibilityExpression(int type)
type
- should be AND, OR, or NOT
public void add(int index, PdfObject element)
PdfArray
add
in class PdfArray
index
- The index at which the specified element is to be inserted
element
- The element to be inserted
PdfArray.add(int, com.itextpdf.text.pdf.PdfObject)
public boolean add(PdfObject object)
PdfArray
PdfObject
to the end of the PdfArray
. The PdfObject
will be the last element.
add
in class PdfArray
object
- PdfObject
to add
true
PdfArray.add(com.itextpdf.text.pdf.PdfObject)
public void addFirst(PdfObject object)
PdfArray
PdfObject
at the beginning of the PdfArray
. The PdfObject
will be the first element, any other elements will be shifted to the right (adds one to their indices).
addFirst
in class PdfArray
object
- The PdfObject
to add
PdfArray.addFirst(com.itextpdf.text.pdf.PdfObject)
public boolean add(float[] values)
PdfArray
float
values to end of the PdfArray
. The values will be the last elements. The float
values are internally converted to PdfNumber
objects.
add
in class PdfArray
values
- An array of float
values to add
true
PdfArray.add(float[])
public boolean add(int[] values)
PdfArray
int
values to end of the PdfArray
. The values will be the last elements. The int
values are internally converted to PdfNumber
objects.
add
in class PdfArray
values
- An array of int
values to add
true
PdfArray.add(int[])
Copyright © 2016. All rights reserved.