org.icepdf.core.pobjects
Class OptionalContentGroup
java.lang.Object
org.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.OptionalContentGroup
- All Implemented Interfaces:
- OptionalContents
public class OptionalContentGroup
- extends Dictionary
- implements OptionalContents
An optional content group is a dictionary representing a collection of graphics
that can be made visible or invisible dynamically by users of conforming
readers. The graphics belonging to such a group may reside anywhere in the
document: they need not be consecutive in drawing order, nor even belong to
the same content stream.
- Since:
- 5.0
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final Name TYPE
NAME_KEY
public static final Name NAME_KEY
USAGE_KEY
public static final Name USAGE_KEY
OptionalContentGroup
public OptionalContentGroup(java.lang.String name,
boolean visible)
OptionalContentGroup
public OptionalContentGroup(Library library,
java.util.HashMap entries)
isOCG
public boolean isOCG()
- Specified by:
isOCG in interface OptionalContents
getName
public java.lang.String getName()
getUsage
public java.util.HashMap getUsage()
isVisible
public boolean isVisible()
- Specified by:
isVisible in interface OptionalContents
setVisible
public void setVisible(boolean visible)