public class LineSvgNodeRenderer extends AbstractSvgNodeRenderer implements IMarkerCapable
ISvgNodeRenderer implementation for the <line> tag.attributesAndStyles| Constructor and Description |
|---|
LineSvgNodeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canElementFill()
Method to see if a certain renderer can use fill.
|
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 |
protected com.itextpdf.kernel.geom.Rectangle |
getObjectBoundingBox(SvgDrawContext context)
Evaluate the current object bounding box.
|
canConstructViewPort, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParentpublic void doDraw(SvgDrawContext context)
AbstractSvgNodeRendererdoDraw in class AbstractSvgNodeRenderercontext - the object that knows the place to draw this element and maintains its stateprotected com.itextpdf.kernel.geom.Rectangle getObjectBoundingBox(SvgDrawContext context)
AbstractSvgNodeRenderergetObjectBoundingBox in class AbstractSvgNodeRenderercontext - the object that knows the place to draw this element and maintains its stateRectangle representing the current object's bounding boxprotected boolean canElementFill()
AbstractSvgNodeRenderercanElementFill in class AbstractSvgNodeRendererpublic ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderercreateDeepCopy in interface ISvgNodeRendererpublic void drawMarker(SvgDrawContext context, MarkerVertexType markerVertexType)
IMarkerCapabledrawMarker in interface IMarkerCapablecontext - the object that knows the place to draw this element and maintains its statemarkerVertexType - type of marker that determine on which vertices of the given element
marker should be drawnpublic double getAutoOrientAngle(MarkerSvgNodeRenderer marker, boolean reverse)
IMarkerCapableorient attribute is set to autogetAutoOrientAngle in interface IMarkerCapablemarker - marker for which the rotation angle should be calculatedreverse - indicates that the resulting angle should be rotated 180 degreesCopyright © 1998–2020 iText Group NV. All rights reserved.