java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfLayerMembership
- All Implemented Interfaces:
PdfOCG
Deprecated.
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.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PdfNameDeprecated.Visible only if all of the entries are OFF.static final PdfNameDeprecated.Visible only if all of the entries are ON.static final PdfNameDeprecated.Visible if any of the entries are OFF.static final PdfNameDeprecated.Visible if any of the entries are ON. -
Constructor Summary
ConstructorsConstructorDescriptionPdfLayerMembership(PdfWriter writer) Deprecated.Creates a new, empty, membership layer. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds a new member to the layer.Deprecated.Gets the member layers.Deprecated.Gets the dictionary representing the membership layer.getRef()Deprecated.Gets thePdfIndirectReferencethat represents this membership layer.voidsetVisibilityPolicy(PdfName type) Deprecated.Sets the visibility policy for content belonging to this membership dictionary.Methods inherited from class com.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
ALLON
Deprecated.Visible only if all of the entries are ON. -
ANYON
Deprecated.Visible if any of the entries are ON. -
ANYOFF
Deprecated.Visible if any of the entries are OFF. -
ALLOFF
Deprecated.Visible only if all of the entries are OFF.
-
-
Constructor Details
-
PdfLayerMembership
Deprecated.Creates a new, empty, membership layer.- Parameters:
writer- the writer
-
-
Method Details
-
getRef
Deprecated.Gets thePdfIndirectReferencethat represents this membership layer. -
addMember
Deprecated.Adds a new member to the layer.- Parameters:
layer- the new member to the layer
-
getLayers
Deprecated.Gets the member layers.- Returns:
- the member layers
-
setVisibilityPolicy
Deprecated.Sets the visibility policy for content belonging to this membership dictionary. Possible values are ALLON, ANYON, ANYOFF and ALLOFF. The default value is ANYON.- Parameters:
type- the visibility policy
-
getPdfObject
Deprecated.Gets the dictionary representing the membership layer. It just returnsthis.- Specified by:
getPdfObjectin interfacePdfOCG- Returns:
- the dictionary representing the layer
-