com.itextpdf.text.pdf
Class PdfVisibilityExpression

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfArray
          extended by com.itextpdf.text.pdf.PdfVisibilityExpression
All Implemented Interfaces:
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

Field Summary
static int AND
          A boolean operator.
static int NOT
          A boolean operator.
static int OR
          A boolean operator.
 
Fields inherited from class com.itextpdf.text.pdf.PdfArray
arrayList
 
Fields inherited from class com.itextpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
 
Constructor Summary
PdfVisibilityExpression(int type)
          Creates a visibility expression.
 
Method Summary
 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.
 
Methods inherited from class com.itextpdf.text.pdf.PdfArray
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

PdfVisibilityExpression

public PdfVisibilityExpression(int type)
Creates a visibility expression.

Parameters:
type - should be AND, OR, or NOT
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 class PdfArray
Parameters:
index - The index at which the specified element is to be inserted
element - 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 a PdfObject to the end of the PdfArray. The PdfObject will be the last element.

Overrides:
add in class PdfArray
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 a 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).

Overrides:
addFirst in class PdfArray
Parameters:
object - The PdfObject 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 of float values to end of the PdfArray. The values will be the last elements. The float values are internally converted to PdfNumber objects.

Overrides:
add in class PdfArray
Parameters:
values - An array of float 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 of int values to end of the PdfArray. The values will be the last elements. The int values are internally converted to PdfNumber objects.

Overrides:
add in class PdfArray
Parameters:
values - An array of int values to add
Returns:
always true
See Also:
PdfArray.add(int[])


Copyright © 2013. All Rights Reserved.