public class Container extends Element
| Constructor and Description |
|---|
Container()
Create a new Container.
|
Container(java.lang.String mcTag)
Create a new Container with a given Marked Content Tag.
|
| Modifier and Type | Method and Description |
|---|---|
Container |
clone()
Makes a copy of the container.
|
Container |
clone(java.util.EnumSet<ElementCloneFlags> cloneFlags)
Makes a copy of the container.
|
Container |
colorConvert(Document document,
ColorProfile prof,
RenderIntent intent,
boolean embed)
Applies the specified ICC ColorProfile to the objects in the Container
|
void |
delete() |
Content |
getContent()
Obtain the content of a container.
|
java.lang.String |
getMarkedContentTag()
The container's Marked Content Tag.
|
OptionalContentMembershipDict |
getOptionalContentMembershipDict()
The OptionalContentMembershipDict property for this Container.
|
PDFDict |
getPDFDict()
Retrieve the PDFObject representation of this object
|
boolean |
isCurrentlyVisible(OptionalContentContext occ)
Tests whether a container is visible in a given optional content context, considering the current ON-OFF states of the optional-content groups in the optional-content dictionary (OCMD) and the dictionary's visibility policy.
|
boolean |
isCurrentlyVisible(OptionalContentContext occ,
Content content)
Tests whether a container is visible in a given optional content context and content.
|
boolean |
makeVisible(OptionalContentContext occ,
Content content)
Makes a container visible in a given optional content context and content by manipulating the ON-OFF states of the optional content groups.
|
void |
setContent(Content content)
Set the content of a container.
|
void |
setMarkedContentTag(java.lang.String mcTag)
The container's Marked Content Tag.
|
void |
setOptionalContentMembershipDict(OptionalContentMembershipDict ocmd)
The OptionalContentMembershipDict property for this Container.
|
public Container()
The new Container has no tag and is not associated with a dictionary.
public Container(java.lang.String mcTag)
The new Container has a Marked Content tag but is not associated with a dictionary.
public java.lang.String getMarkedContentTag()
public void setMarkedContentTag(java.lang.String mcTag)
public Content getContent()
public void setContent(Content content)
content - The new Content of the container.public Container clone()
Make a copy of an container to obtain a new container that has a distinct set of attributes.
public Container clone(java.util.EnumSet<ElementCloneFlags> cloneFlags)
Make a copy of an container to obtain a new container that has a distinct set of attributes.
public OptionalContentMembershipDict getOptionalContentMembershipDict()
Setting this property will attach the Container to an OptionalContentMembershipDict; it will then be associated with the OptionalContentGroups and be subject to the VisibilityPolicy and VisibilityExpression of that MembershipDict.
By setting this property to null, the Container is detached from any OptionalContentMembershipDict.
public void setOptionalContentMembershipDict(OptionalContentMembershipDict ocmd)
Setting this property will attach the Container to an OptionalContentMembershipDict; it will then be associated with the OptionalContentGroups and be subject to the VisibilityPolicy and VisibilityExpression of that MembershipDict.
By setting this property to null, the Container is detached from any OptionalContentMembershipDict.
ocmd - the OptionalContentMembershipDictpublic boolean isCurrentlyVisible(OptionalContentContext occ)
If the container occurs more than once within the content, this method only checks the visibility of the first occurrence of the container.
This method determines visibility without considering the visbility of the Content object that the container belongs to. To determine the visibility of a container while taking the Content's visibility into consideration, use the alternate version of this method.
public boolean isCurrentlyVisible(OptionalContentContext occ, Content content)
If the container occurs more than once within the content, this method only checks the visibility of the first occurrence of the container.
public boolean makeVisible(OptionalContentContext occ, Content content)
occ - The optional content context in which the container is made visible.content - The content containing the container.public Container colorConvert(Document document, ColorProfile prof, RenderIntent intent, boolean embed)
document - The document the element belongs to.prof - The ICC ColorProfile to be applied.intent - The ICC Rendering Intent for the ColorProfileembed - If true, embed the color space and make the objects calibrated. If it is false and the target profile is CMYK, RGB, or Gray, the colors space of the resulting objects, after conversion, will be DeviceCMYK, DeviceRGB, or DeviceGray, respectively.public PDFDict getPDFDict()