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 <polygon> tag.-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSvgNodeRenderer
AbstractSvgNodeRenderer.FillProperties, AbstractSvgNodeRenderer.StrokeProperties -
Field Summary
Fields inherited from class PolylineSvgNodeRenderer
pointsFields inherited from class AbstractSvgNodeRenderer
attributesAndStyles, doFill, doStroke -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidAppends the starting point to the end ofPolylineSvgNodeRenderer.pointsif it is not already there.Creates a deep copy of this renderer, including it's subtree of children(package private) voiddoStrokeOrFill(String fillRuleRawValue, PdfCanvas currentCanvas) Do stroke or fill based ondoFill/doStrokefields.protected voidCalls setPoints(String) to setPolylineSvgNodeRenderer.pointsThen callsconnectPoints()to create a path between the first and last point if it doesn't already existMethods inherited from class PolylineSvgNodeRenderer
doDraw, drawMarker, getAutoOrientAngle, getObjectBoundingBox, getPointsMethods inherited from class AbstractSvgNodeRenderer
applyFillAndStrokeProperties, applyNonScalingStrokeTransform, calculateViewPortTranslation, canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getCurrentFontSize, getCurrentViewBox, getParent, getParentClipPath, isHidden, parseAbsoluteLength, parseHorizontalLength, parseVerticalLength, postDraw, preDraw, retrieveAlignAndMeet, setAttribute, setAttributesAndStyles, setParentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IMarkerCapable
drawMarker, getAutoOrientAngle
-
Constructor Details
-
PolygonSvgNodeRenderer
public PolygonSvgNodeRenderer()
-
-
Method Details
-
setPoints
Calls setPoints(String) to setPolylineSvgNodeRenderer.pointsThen callsconnectPoints()to create a path between the first and last point if it doesn't already exist- Overrides:
setPointsin classPolylineSvgNodeRenderer- Parameters:
pointsAttribute- A string of space separated x,y value pairs
-
connectPoints
private void connectPoints()Appends the starting point to the end ofPolylineSvgNodeRenderer.pointsif it is not already there. -
createDeepCopy
Description copied from interface:ISvgNodeRendererCreates a deep copy of this renderer, including it's subtree of children- Specified by:
createDeepCopyin interfaceISvgNodeRenderer- Overrides:
createDeepCopyin classPolylineSvgNodeRenderer- Returns:
- deep copy of this renderer
-
doStrokeOrFill
Description copied from class:AbstractSvgNodeRendererDo stroke or fill based ondoFill/doStrokefields.- Overrides:
doStrokeOrFillin classAbstractSvgNodeRenderer- Parameters:
fillRuleRawValue- fill rule attribute value.currentCanvas- current canvas to draw on.
-