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 booleanadd(float[] values)Adds an array offloatvalues to end of thePdfArray.booleanadd(int[] values)Adds an array ofintvalues to end of thePdfArray.voidadd(int index, PdfObject element)Inserts the specified element at the specified position.booleanadd(PdfObject object)Adds aPdfObjectto the end of thePdfArray.voidaddFirst(PdfObject object)Inserts aPdfObjectat 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:PdfArrayInserts 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:
addin 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:PdfArrayAdds aPdfObjectto the end of thePdfArray. ThePdfObjectwill be the last element.- Overrides:
addin classPdfArray- Parameters:
object-PdfObjectto add- Returns:
- always
true - See Also:
PdfArray.add(com.itextpdf.text.pdf.PdfObject)
-
addFirst
public void addFirst(PdfObject object)
Description copied from class:PdfArrayInserts aPdfObjectat the beginning of thePdfArray. ThePdfObjectwill be the first element, any other elements will be shifted to the right (adds one to their indices).- Overrides:
addFirstin classPdfArray- Parameters:
object- ThePdfObjectto add- See Also:
PdfArray.addFirst(com.itextpdf.text.pdf.PdfObject)
-
add
public boolean add(float[] values)
Description copied from class:PdfArrayAdds an array offloatvalues to end of thePdfArray. The values will be the last elements. Thefloatvalues are internally converted toPdfNumberobjects.- Overrides:
addin classPdfArray- Parameters:
values- An array offloatvalues to add- Returns:
- always
true - See Also:
PdfArray.add(float[])
-
add
public boolean add(int[] values)
Description copied from class:PdfArrayAdds an array ofintvalues to end of thePdfArray. The values will be the last elements. Theintvalues are internally converted toPdfNumberobjects.- Overrides:
addin classPdfArray- Parameters:
values- An array ofintvalues to add- Returns:
- always
true - See Also:
PdfArray.add(int[])
-
-