public class PolylineSvgNodeRenderer extends AbstractSvgNodeRenderer
ISvgNodeRenderer implementation for the <polyline> tag.| Modifier and Type | Field and Description |
|---|---|
protected List<com.itextpdf.kernel.geom.Point> |
points
A List of
Point objects representing the path to be drawn by the polyline tag |
attributesAndStyles| Constructor and Description |
|---|
PolylineSvgNodeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
protected void |
doDraw(SvgDrawContext context)
Draws this element to a canvas-like object maintained in the context.
|
protected List<com.itextpdf.kernel.geom.Point> |
getPoints() |
protected void |
setPoints(String pointsAttribute)
Parses a string of space separated x,y pairs into individual
Point objects and appends them topoints. |
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParentprotected List<com.itextpdf.kernel.geom.Point> points
Point objects representing the path to be drawn by the polyline tagprotected List<com.itextpdf.kernel.geom.Point> getPoints()
protected void setPoints(String pointsAttribute)
Point objects and appends them topoints.
Throws an SvgProcessingException if pointsAttribute does not have a valid list of numerical x,y pairs.pointsAttribute - A string of space separated x,y value pairsprotected void doDraw(SvgDrawContext context)
doDraw in class AbstractSvgNodeRenderercontext - the object that knows the place to draw this element and maintains its statepublic ISvgNodeRenderer createDeepCopy()
ISvgNodeRendererCopyright © 1998–2019 iText Group NV. All rights reserved.