public class PdfRootSvgNodeRenderer extends Object implements ISvgNodeRenderer
| Constructor and Description |
|---|
PdfRootSvgNodeRenderer(ISvgNodeRenderer subTreeRoot)
Creates a
PdfRootSvgNodeRenderer instance. |
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
void |
draw(SvgDrawContext context)
Draws this element to a canvas-like object maintained in the context.
|
String |
getAttribute(String key)
Retrieves the property value for a given key name.
|
Map<String,String> |
getAttributeMapCopy()
Get a modifiable copy of the style and attribute map
|
com.itextpdf.kernel.geom.Rectangle |
getObjectBoundingBox(SvgDrawContext context)
Calculates the current object bounding box.
|
ISvgNodeRenderer |
getParent()
Gets the parent of this renderer.
|
void |
setAttribute(String key,
String value)
Sets a property key and value pairs for a given attribute
|
void |
setAttributesAndStyles(Map<String,String> attributesAndStyles)
Sets the map of XML node attributes and CSS style properties that this
renderer needs.
|
void |
setParent(ISvgNodeRenderer parent)
Sets the parent of this renderer.
|
public PdfRootSvgNodeRenderer(ISvgNodeRenderer subTreeRoot)
PdfRootSvgNodeRenderer instance.subTreeRoot - root of the subtreepublic void setParent(ISvgNodeRenderer parent)
ISvgNodeRenderersetParent in interface ISvgNodeRendererparent - the parent rendererpublic ISvgNodeRenderer getParent()
ISvgNodeRenderergetParent in interface ISvgNodeRendererpublic void draw(SvgDrawContext context)
ISvgNodeRendererdraw in interface ISvgNodeRenderercontext - the object that knows the place to draw this element and
maintains its statepublic void setAttributesAndStyles(Map<String,String> attributesAndStyles)
ISvgNodeRenderersetAttributesAndStyles in interface ISvgNodeRendererattributesAndStyles - the mapping from key names to valuespublic String getAttribute(String key)
ISvgNodeRenderergetAttribute in interface ISvgNodeRendererkey - the name of the property to search fornullpublic void setAttribute(String key, String value)
ISvgNodeRenderersetAttribute in interface ISvgNodeRendererkey - the name of the attributevalue - the value of the attributepublic Map<String,String> getAttributeMapCopy()
ISvgNodeRenderergetAttributeMapCopy in interface ISvgNodeRendererpublic com.itextpdf.kernel.geom.Rectangle getObjectBoundingBox(SvgDrawContext context)
ISvgNodeRenderergetObjectBoundingBox in interface ISvgNodeRenderercontext - the current context, for instance it contains current viewport and available
font dataRectangle representing the current object's bounding box, or null
if bounding box is undefinedpublic ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderercreateDeepCopy in interface ISvgNodeRendererCopyright © 1998–2022 iText Group NV. All rights reserved.