Package com.itextpdf.svg.renderers.impl
Class PolygonSvgNodeRenderer
java.lang.Object
com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
com.itextpdf.svg.renderers.impl.PolylineSvgNodeRenderer
com.itextpdf.svg.renderers.impl.PolygonSvgNodeRenderer
- All Implemented Interfaces:
-
IMarkerCapable
,ISvgNodeRenderer
ISvgNodeRenderer
implementation for the -
Field Summary
Fields inherited from class com.itextpdf.svg.renderers.impl.PolylineSvgNodeRenderer
points
Fields inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
attributesAndStyles
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a deep copy of this renderer, including it's subtree of childrenprotected void
Calls setPoints(String) to setPolylineSvgNodeRenderer.points
Then callsconnectPoints()
to create a path between the first and last point if it doesn't already existMethods inherited from class com.itextpdf.svg.renderers.impl.PolylineSvgNodeRenderer
doDraw, drawMarker, getAutoOrientAngle, getObjectBoundingBox, getPoints
Methods inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.itextpdf.svg.renderers.IMarkerCapable
drawMarker, getAutoOrientAngle
-
Constructor Details
-
PolygonSvgNodeRenderer
public PolygonSvgNodeRenderer()
-
-
Method Details
-
setPoints
Calls setPoints(String) to setPolylineSvgNodeRenderer.points
Then callsconnectPoints()
to create a path between the first and last point if it doesn't already exist- Overrides:
-
setPoints
in classPolylineSvgNodeRenderer
- Parameters:
-
pointsAttribute
- A string of space separated x,y value pairs
-
createDeepCopy
Description copied from interface:ISvgNodeRenderer
Creates a deep copy of this renderer, including it's subtree of children- Specified by:
-
createDeepCopy
in interfaceISvgNodeRenderer
- Overrides:
-
createDeepCopy
in classPolylineSvgNodeRenderer
- Returns:
- deep copy of this renderer
-