public class OptionalContentMembershipDict
extends java.lang.Object
Note that by placing other element objects in a container, they can also be associated with an optional content group.
An OptionalContentMembershipDict connects content to the OptionalContentGroup; it contains a list of OptionalContentGroups, and rules for determining visibility when the OptionalContentGroups have conflicting on/off states in the active OptionalContentContext.
An OptionalContentMembershipDict cannot be changed once created; you must create a new OptionalContentMembershipDict and change the objects to point to it.
| Constructor and Description |
|---|
OptionalContentMembershipDict(Document doc,
java.util.List<OptionalContentGroup> ocgs,
VisibilityPolicy vp)
Create a new OptionalContentMembershipDict.
|
OptionalContentMembershipDict(Document doc,
java.util.List<OptionalContentGroup> ocgs,
VisibilityPolicy vp,
PDFArray visibilityExpression)
Create a new OptionalContentMembershipDict.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
equals(java.lang.Object rhs) |
java.util.List<OptionalContentGroup> |
getOptionalContentGroups()
Gets the list of OptionalContentGroups for this membership dictionary.
|
PDFArray |
getVisibilityExpression()
GetVisibilityExpression Gets the Visibility Expression for this membership dictionary.
|
VisibilityPolicy |
getVisibilityPolicy()
Gets the Visbility Policy for this membership dictionary.
|
java.lang.String |
toString() |
public OptionalContentMembershipDict(Document doc, java.util.List<OptionalContentGroup> ocgs, VisibilityPolicy vp)
doc - The document that the new OptionalContentMembershipDict will belong to.ocgs - The list of OptionalContentGroups this MembershipDict refers to.vp - The VisibilityPolicy of this MembershipDict.public OptionalContentMembershipDict(Document doc, java.util.List<OptionalContentGroup> ocgs, VisibilityPolicy vp, PDFArray visibilityExpression)
doc - The document that the new OptionalContentMembershipDict will belong to.ocgs - The list of OptionalContentGroups this MembershipDict refers to.vp - The VisibilityPolicy of this MembershipDict.visibilityExpression - The VisibilityExpression of this MembershipDict.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.util.List<OptionalContentGroup> getOptionalContentGroups()
public VisibilityPolicy getVisibilityPolicy()
public PDFArray getVisibilityExpression()