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
|
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 subtree
public void setParent(ISvgNodeRenderer parent)
ISvgNodeRenderer
setParent
in interface ISvgNodeRenderer
parent
- the parent renderer
public ISvgNodeRenderer getParent()
ISvgNodeRenderer
getParent
in interface ISvgNodeRenderer
public void draw(SvgDrawContext context)
ISvgNodeRenderer
draw
in interface ISvgNodeRenderer
context
- the object that knows the place to draw this element and maintains its state
public void setAttributesAndStyles(Map<String,String> attributesAndStyles)
ISvgNodeRenderer
setAttributesAndStyles
in interface ISvgNodeRenderer
attributesAndStyles
- the mapping from key names to values
public String getAttribute(String key)
ISvgNodeRenderer
getAttribute
in interface ISvgNodeRenderer
key
- the name of the property to search for
null
public void setAttribute(String key, String value)
ISvgNodeRenderer
setAttribute
in interface ISvgNodeRenderer
key
- the name of the attribute
value
- the value of the attribute
public Map<String,String> getAttributeMapCopy()
ISvgNodeRenderer
getAttributeMapCopy
in interface ISvgNodeRenderer
public Rectangle getObjectBoundingBox(SvgDrawContext context)
ISvgNodeRenderer
getObjectBoundingBox
in interface ISvgNodeRenderer
context
- the current context, for instance it contains current viewport and available font data
Rectangle
representing the current object's bounding box, or null if bounding box is undefined
public ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderer
createDeepCopy
in interface ISvgNodeRenderer
Copyright © 1998–2022 iText Group NV. All rights reserved.