Package com.itextpdf.text.pdf
Class PdfArtifact
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfArtifact
-
- All Implemented Interfaces:
IAccessibleElement
public class PdfArtifact extends java.lang.Object implements IAccessibleElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PdfArtifact.ArtifactType
-
Field Summary
Fields Modifier and Type Field Description protected java.util.HashMap<PdfName,PdfObject>
accessibleAttributes
private static java.util.HashSet<java.lang.String>
allowedArtifactTypes
protected AccessibleElementId
id
protected PdfName
role
-
Constructor Summary
Constructors Constructor Description PdfArtifact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfObject
getAccessibleAttribute(PdfName key)
Get the attribute of accessible element (everything inA
dictionary +Lang
,Alt
,ActualText
,E
).java.util.HashMap<PdfName,PdfObject>
getAccessibleAttributes()
Gets all the properties of accessible element.PdfArray
getAttached()
PdfArray
getBBox()
AccessibleElementId
getId()
PdfName
getRole()
Gets the role of the accessible element.PdfString
getType()
boolean
isInline()
void
setAccessibleAttribute(PdfName key, PdfObject value)
Set the attribute of accessible element (everything inA
dictionary +Lang
,Alt
,ActualText
,E
).void
setAttached(PdfArray attached)
void
setBBox(PdfArray bbox)
void
setId(AccessibleElementId id)
void
setRole(PdfName role)
Sets the role of the accessiblee element.void
setType(PdfArtifact.ArtifactType type)
void
setType(PdfString type)
-
-
-
Field Detail
-
allowedArtifactTypes
private static final java.util.HashSet<java.lang.String> allowedArtifactTypes
-
role
protected PdfName role
-
id
protected AccessibleElementId id
-
-
Method Detail
-
getAccessibleAttribute
public PdfObject getAccessibleAttribute(PdfName key)
Description copied from interface:IAccessibleElement
Get the attribute of accessible element (everything inA
dictionary +Lang
,Alt
,ActualText
,E
).- Specified by:
getAccessibleAttribute
in interfaceIAccessibleElement
- Returns:
-
setAccessibleAttribute
public void setAccessibleAttribute(PdfName key, PdfObject value)
Description copied from interface:IAccessibleElement
Set the attribute of accessible element (everything inA
dictionary +Lang
,Alt
,ActualText
,E
).- Specified by:
setAccessibleAttribute
in interfaceIAccessibleElement
-
getAccessibleAttributes
public java.util.HashMap<PdfName,PdfObject> getAccessibleAttributes()
Description copied from interface:IAccessibleElement
Gets all the properties of accessible element.- Specified by:
getAccessibleAttributes
in interfaceIAccessibleElement
- Returns:
-
getRole
public PdfName getRole()
Description copied from interface:IAccessibleElement
Gets the role of the accessible element.- Specified by:
getRole
in interfaceIAccessibleElement
- Returns:
-
setRole
public void setRole(PdfName role)
Description copied from interface:IAccessibleElement
Sets the role of the accessiblee element. Set role tonull
if you don't want to tag this element. Note that all child elements won't also be tagged.- Specified by:
setRole
in interfaceIAccessibleElement
-
getId
public AccessibleElementId getId()
- Specified by:
getId
in interfaceIAccessibleElement
-
setId
public void setId(AccessibleElementId id)
- Specified by:
setId
in interfaceIAccessibleElement
-
isInline
public boolean isInline()
- Specified by:
isInline
in interfaceIAccessibleElement
-
getType
public PdfString getType()
-
setType
public void setType(PdfString type)
-
setType
public void setType(PdfArtifact.ArtifactType type)
-
getBBox
public PdfArray getBBox()
-
setBBox
public void setBBox(PdfArray bbox)
-
getAttached
public PdfArray getAttached()
-
setAttached
public void setAttached(PdfArray attached)
-
-