public class PdfVisibilityExpression extends PdfObjectWrapper<PdfArray>
Constructor and Description |
---|
PdfVisibilityExpression(PdfArray visibilityExpressionArray)
Constructs a new PdfVisibilityExpression instance by its raw PdfArray.
|
PdfVisibilityExpression(PdfName operator)
Creates a visibility expression.
|
Modifier and Type | Method and Description |
---|---|
void |
addOperand(PdfLayer layer)
Adds a new operand to the current visibility expression.
|
void |
addOperand(PdfVisibilityExpression expression)
Adds a new opeand to the current visibility expression.
|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
ensureObjectIsAddedToDocument, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfVisibilityExpression(PdfArray visibilityExpressionArray)
visibilityExpressionArray
- the array representing the visibility expression
public PdfVisibilityExpression(PdfName operator)
operator
- should be either PdfName#And, PdfName#Or, or PdfName#Not
public void addOperand(PdfLayer layer)
layer
- the layer operand to be added.
public void addOperand(PdfVisibilityExpression expression)
expression
- the PdfVisibilityExpression instance operand to be added
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfArray>
Copyright © 1998–2016 iText Group NV. All rights reserved.