|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfLayerMembership
public class PdfLayerMembership
Content typically belongs to a single optional content group, and is visible when the group is ON and invisible when it is OFF. To express more complex visibility policies, content should not declare itself to belong to an optional content group directly, but rather to an optional content membership dictionary represented by this class.
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. |
(package private) HashSet |
layers
|
(package private) PdfArray |
members
|
(package private) PdfIndirectReference |
ref
|
Fields inherited from class com.lowagie.text.pdf.PdfDictionary |
---|
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES |
Fields inherited from class com.lowagie.text.pdf.PdfObject |
---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
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. |
Methods inherited from class com.lowagie.text.pdf.PdfDictionary |
---|
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString |
Methods inherited from class com.lowagie.text.pdf.PdfObject |
---|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PdfName ALLON
public static final PdfName ANYON
public static final PdfName ANYOFF
public static final PdfName ALLOFF
PdfIndirectReference ref
PdfArray members
HashSet layers
Constructor Detail |
---|
public PdfLayerMembership(PdfWriter writer)
writer
- the writerMethod Detail |
---|
public PdfIndirectReference getRef()
PdfIndirectReference
that represents this membership layer.
getRef
in interface PdfOCG
PdfIndirectReference
that represents this layerpublic void addMember(PdfLayer layer)
layer
- the new member to the layerpublic Collection getLayers()
public void setVisibilityPolicy(PdfName type)
type
- the visibility policypublic PdfObject getPdfObject()
this
.
getPdfObject
in interface PdfOCG
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |