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
|
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 renderer
ISvgNodeRenderer getParent()
void draw(SvgDrawContext context)
context
- the object that knows the place to draw this element and maintains its state
void setAttributesAndStyles(Map<String,String> attributesAndStyles)
attributesAndStyles
- the mapping from key names to values
String getAttribute(String key)
key
- the name of the property to search for
null
void setAttribute(String key, String value)
key
- the name of the attribute
value
- the value of the attribute
Map<String,String> getAttributeMapCopy()
ISvgNodeRenderer createDeepCopy()
Copyright © 1998–2020 iText Group NV. All rights reserved.