Class PDOptionalContentGroup
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.documentinterchange.markedcontent.PDPropertyList
-
- com.tom_roush.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentGroup
-
- All Implemented Interfaces:
COSObjectable
public class PDOptionalContentGroup extends PDPropertyList
An optional content group (OCG).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPDOptionalContentGroup.RenderStateEnumeration for the renderState dictionary entry on the "Export", "View" and "Print" dictionary.
-
Field Summary
-
Fields inherited from class com.tom_roush.pdfbox.pdmodel.documentinterchange.markedcontent.PDPropertyList
dict
-
-
Constructor Summary
Constructors Constructor Description PDOptionalContentGroup(COSDictionary dict)Creates a new instance based on a givenCOSDictionary.PDOptionalContentGroup(String name)Creates a new optional content group (OCG).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of the optional content group.PDOptionalContentGroup.RenderStategetRenderState(RenderDestination destination)voidsetName(String name)Sets the name of the optional content group.StringtoString()-
Methods inherited from class com.tom_roush.pdfbox.pdmodel.documentinterchange.markedcontent.PDPropertyList
create, getCOSObject
-
-
-
-
Constructor Detail
-
PDOptionalContentGroup
public PDOptionalContentGroup(String name)
Creates a new optional content group (OCG).- Parameters:
name- the name of the content group
-
PDOptionalContentGroup
public PDOptionalContentGroup(COSDictionary dict)
Creates a new instance based on a givenCOSDictionary.- Parameters:
dict- the dictionary
-
-
Method Detail
-
getName
public String getName()
Returns the name of the optional content group.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name of the optional content group.- Parameters:
name- the name
-
getRenderState
public PDOptionalContentGroup.RenderState getRenderState(RenderDestination destination)
- Parameters:
destination- to be rendered- Returns:
- state or null if undefined
-
-