public class OptionalContentGroup
extends java.lang.Object
In a PDF Viewer, Optional Content Groups are referred to as "Layers."
| Constructor and Description |
|---|
OptionalContentGroup(Document doc,
java.lang.String name)
Create a new OptionalContentGroup.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
equals(java.lang.Object rhs) |
java.util.List<java.lang.String> |
getIntent()
Gets the intent list for an optional-content group.
|
java.lang.String |
getName()
Get the name of the optional content group
|
PDFDict |
getPDFDict()
Retrieve the PDFObject representation of this object
|
void |
setIntent(java.util.List<java.lang.String> intents)
Sets the intent list for an optional-content group.
|
void |
setName(java.lang.String name)
Set the name of the optional content group
|
java.lang.String |
toString() |
public OptionalContentGroup(Document doc, java.lang.String name)
doc - The document that the new OptionalContentGroup will belong to.name - The name given to the new OptionalContentGroup.public void delete()
public boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
public void setName(java.lang.String name)
public java.util.List<java.lang.String> getIntent()
A group's content is considered to be optional (that is, the group's state is considered in its visibility) if any intent in its list matches an intent of the context. The intent list of the context is usually set from the intent list of the document configuration.
public void setIntent(java.util.List<java.lang.String> intents)
A group's content is considered to be optional (that is, the group's state is considered in its visibility) if any intent in its list matches an intent of the context. The intent list of the context is usually set from the intent list of the document configuration.
public PDFDict getPDFDict()