public interface ISvgNodeRenderer
SvgDrawContext, applying styling
(CSS and attributes).| 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.
|
void setParent(ISvgNodeRenderer parent)
parent - the parent rendererISvgNodeRenderer getParent()
void draw(SvgDrawContext context)
context - the object that knows the place to draw this element and
maintains its statevoid setAttributesAndStyles(Map<String,String> attributesAndStyles)
attributesAndStyles - the mapping from key names to valuesString getAttribute(String key)
key - the name of the property to search fornullvoid setAttribute(String key, String value)
key - the name of the attributevalue - the value of the attributeMap<String,String> getAttributeMapCopy()
ISvgNodeRenderer createDeepCopy()
com.itextpdf.kernel.geom.Rectangle getObjectBoundingBox(SvgDrawContext context)
context - 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 undefinedCopyright © 1998–2025 Apryse Group NV. All rights reserved.