com.lowagie.text.pdf
public class PdfLayerMembership extends PdfDictionary implements PdfOCG
Field Summary | |
---|---|
static PdfName | ALLOFF
Visible only if all of the entries are OFF. |
static PdfName | ALLON
Visible only if all of the entries are ON. |
static PdfName | ANYOFF
Visible if any of the entries are OFF. |
static PdfName | ANYON
Visible if any of the entries are ON. |
HashSet | layers |
PdfArray | members |
PdfIndirectReference | ref |
Constructor Summary | |
---|---|
PdfLayerMembership(PdfWriter writer)
Creates a new, empty, membership layer. |
Method Summary | |
---|---|
void | addMember(PdfLayer layer)
Adds a new member to the layer. |
Collection | getLayers()
Gets the member layers. |
PdfObject | getPdfObject()
Gets the dictionary representing the membership layer. |
PdfIndirectReference | getRef()
Gets the PdfIndirectReference that represents this membership layer. |
void | setVisibilityPolicy(PdfName type)
Sets the visibility policy for content belonging to this
membership dictionary. |
Parameters: writer the writer
Parameters: layer the new member to the layer
Returns: the member layers
this
.Returns: the dictionary representing the layer
PdfIndirectReference
that represents this membership layer.Returns: the PdfIndirectReference
that represents this layer
Parameters: type the visibility policy