public class PathSvgNodeRenderer extends AbstractSvgNodeRenderer implements IMarkerCapable
ISvgNodeRenderer
implementation for the attributesAndStyles
Constructor and Description |
---|
PathSvgNodeRenderer() |
Modifier and Type | Method and Description |
---|---|
ISvgNodeRenderer |
createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
void |
doDraw(SvgDrawContext context)
Draws this element to a canvas-like object maintained in the context.
|
void |
drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType)
Draws a marker in the specified context.
|
double |
getAutoOrientAngle(MarkerSvgNodeRenderer marker, boolean reverse)
Calculates marker orientation angle if orient attribute is set to auto
|
Rectangle |
getObjectBoundingBox(SvgDrawContext context)
Calculates the current object bounding box.
|
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParent
public void doDraw(SvgDrawContext context)
AbstractSvgNodeRenderer
doDraw
in class AbstractSvgNodeRenderer
context
- the object that knows the place to draw this element and maintains its state
public ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderer
createDeepCopy
in interface ISvgNodeRenderer
public Rectangle getObjectBoundingBox(SvgDrawContext context)
ISvgNodeRenderer
getObjectBoundingBox
in interface ISvgNodeRenderer
context
- the current context, for instance it contains current viewport and available font data
Rectangle
representing the current object's bounding box, or null if bounding box is undefined
public void drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType)
IMarkerCapable
drawMarker
in interface IMarkerCapable
context
- the object that knows the place to draw this element and maintains its state
markerVertexType
- type of marker that determine on which vertices of the given element marker should be drawn
public double getAutoOrientAngle(MarkerSvgNodeRenderer marker, boolean reverse)
IMarkerCapable
orient
attribute is set to auto
getAutoOrientAngle
in interface IMarkerCapable
marker
- marker for which the rotation angle should be calculated
reverse
- indicates that the resulting angle should be rotated 180 degrees
Copyright © 1998–2022 iText Group NV. All rights reserved.