Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfLayerMembership [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.PdfObject
      com.lowagie.text.pdf.PdfDictionary
         com.lowagie.text.pdf.PdfLayerMembership

All Implemented Interfaces:
    PdfOCG

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
public static final  PdfName ALLON    Visible only if all of the entries are ON
public static final  PdfName ANYON    Visible if any of the entries are ON
public static final  PdfName ANYOFF    Visible if any of the entries are OFF
public static final  PdfName ALLOFF    Visible only if all of the entries are OFF
 PdfIndirectReference ref     
 PdfArray members     
 HashSet layers     
Fields inherited from com.lowagie.text.pdf.PdfDictionary:
FONT,  OUTLINES,  PAGE,  PAGES,  CATALOG,  hashMap
Fields inherited from com.lowagie.text.pdf.PdfObject:
BOOLEAN,  NUMBER,  STRING,  NAME,  ARRAY,  DICTIONARY,  STREAM,  NULL,  INDIRECT,  NOTHING,  TEXT_PDFDOCENCODING,  TEXT_UNICODE,  bytes,  type,  indRef
Constructor:
 public PdfLayerMembership(PdfWriter writer) 
    Creates a new, empty, membership layer.
    Parameters:
    writer - the writer
Method from com.lowagie.text.pdf.PdfLayerMembership Summary:
addMember,   getLayers,   getPdfObject,   getRef,   setVisibilityPolicy
Methods from 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 from com.lowagie.text.pdf.PdfObject:
canBeInObjStm,   getBytes,   getIndRef,   isArray,   isBoolean,   isDictionary,   isIndirect,   isName,   isNull,   isNumber,   isStream,   isString,   length,   setContent,   setIndRef,   toPdf,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfLayerMembership Detail:
 public  void addMember(PdfLayer layer) 
    Adds a new member to the layer.
 public Collection getLayers() 
    Gets the member layers.
 public PdfObject getPdfObject() 
    Gets the dictionary representing the membership layer. It just returns this.
 public PdfIndirectReference getRef() 
    Gets the PdfIndirectReference that represents this membership layer.
 public  void setVisibilityPolicy(PdfName type) 
    Sets the visibility policy for content belonging to this membership dictionary. Possible values are ALLON, ANYON, ANYOFF and ALLOFF. The default value is ANYON.