| |
|
| java.lang.Object com.lowagie.text.pdf.PdfObject com.lowagie.text.pdf.PdfDictionary com.lowagie.text.pdf.PdfLayerMembership
PdfLayerMembership | public class PdfLayerMembership extends PdfDictionary implements PdfOCG(Code) | | 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) |
ALLOFF | final public static PdfName ALLOFF(Code) | | Visible only if all of the entries are OFF.
|
ALLON | final public static PdfName ALLON(Code) | | Visible only if all of the entries are ON.
|
ANYOFF | final public static PdfName ANYOFF(Code) | | Visible if any of the entries are OFF.
|
ANYON | final public static PdfName ANYON(Code) | | Visible if any of the entries are ON.
|
PdfLayerMembership | public PdfLayerMembership(PdfWriter writer)(Code) | | Creates a new, empty, membership layer.
Parameters: writer - the writer |
addMember | public void addMember(PdfLayer layer)(Code) | | Adds a new member to the layer.
Parameters: layer - the new member to the layer |
getLayers | public Collection getLayers()(Code) | | Gets the member layers.
the member layers |
getPdfObject | public PdfObject getPdfObject()(Code) | | Gets the dictionary representing the membership layer. It just returns this .
the dictionary representing the layer |
getRef | public PdfIndirectReference getRef()(Code) | | Gets the PdfIndirectReference that represents this membership layer.
the PdfIndirectReference that represents this layer |
setVisibilityPolicy | public void setVisibilityPolicy(PdfName type)(Code) | | 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 |
|
|
|