Package com.itextpdf.text.pdf
Class PdfVisibilityExpression
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfArray
-
- com.itextpdf.text.pdf.PdfVisibilityExpression
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<PdfObject>
public class PdfVisibilityExpression extends PdfArray
An array specifying a visibility expression, used to compute visibility of content based on a set of optional content groups.- Since:
- 5.0.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PdfVisibilityExpression(int type)
Creates a visibility expression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(float[] values)
Adds an array offloat
values to end of thePdfArray
.boolean
add(int[] values)
Adds an array ofint
values to end of thePdfArray
.void
add(int index, PdfObject element)
Inserts the specified element at the specified position.boolean
add(PdfObject object)
Adds aPdfObject
to the end of thePdfArray
.void
addFirst(PdfObject object)
Inserts aPdfObject
at the beginning of thePdfArray
.-
Methods inherited from class com.itextpdf.text.pdf.PdfArray
asDoubleArray, asLongArray, contains, getArrayList, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getPdfObject, isEmpty, iterator, listIterator, remove, set, size, toPdf, toString
-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Field Detail
-
OR
public static final int OR
A boolean operator.- See Also:
- Constant Field Values
-
AND
public static final int AND
A boolean operator.- See Also:
- Constant Field Values
-
NOT
public static final int NOT
A boolean operator.- See Also:
- Constant Field Values
-
-
Method Detail
-
add
public void add(int index, PdfObject element)
Description copied from class:PdfArray
Inserts the specified element at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).- Overrides:
add
in classPdfArray
- Parameters:
index
- The index at which the specified element is to be insertedelement
- The element to be inserted- See Also:
PdfArray.add(int, com.itextpdf.text.pdf.PdfObject)
-
add
public boolean add(PdfObject object)
Description copied from class:PdfArray
Adds aPdfObject
to the end of thePdfArray
. ThePdfObject
will be the last element.- Overrides:
add
in classPdfArray
- Parameters:
object
-PdfObject
to add- Returns:
- always
true
- See Also:
PdfArray.add(com.itextpdf.text.pdf.PdfObject)
-
addFirst
public void addFirst(PdfObject object)
Description copied from class:PdfArray
Inserts aPdfObject
at the beginning of thePdfArray
. ThePdfObject
will be the first element, any other elements will be shifted to the right (adds one to their indices).- Overrides:
addFirst
in classPdfArray
- Parameters:
object
- ThePdfObject
to add- See Also:
PdfArray.addFirst(com.itextpdf.text.pdf.PdfObject)
-
add
public boolean add(float[] values)
Description copied from class:PdfArray
Adds an array offloat
values to end of thePdfArray
. The values will be the last elements. Thefloat
values are internally converted toPdfNumber
objects.- Overrides:
add
in classPdfArray
- Parameters:
values
- An array offloat
values to add- Returns:
- always
true
- See Also:
PdfArray.add(float[])
-
add
public boolean add(int[] values)
Description copied from class:PdfArray
Adds an array ofint
values to end of thePdfArray
. The values will be the last elements. Theint
values are internally converted toPdfNumber
objects.- Overrides:
add
in classPdfArray
- Parameters:
values
- An array ofint
values to add- Returns:
- always
true
- See Also:
PdfArray.add(int[])
-
-