Package com.itextpdf.svg.renderers.impl
Class LineSvgNodeRenderer
java.lang.Object
com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
com.itextpdf.svg.renderers.impl.LineSvgNodeRenderer
- All Implemented Interfaces:
-
IMarkerCapable,ISvgNodeRenderer
ISvgNodeRenderer implementation for the -
Field Summary
Fields inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
attributesAndStyles -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanMethod to see if a certain renderer can use fill.Creates a deep copy of this renderer, including it's subtree of childrenvoiddoDraw(SvgDrawContext context) Draws this element to a canvas-like object maintained in the context.voiddrawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) Draws a marker in the specified context.doublegetAutoOrientAngle(MarkerSvgNodeRenderer marker, boolean reverse) Calculates marker orientation angle iforientattribute is set toautogetObjectBoundingBox(SvgDrawContext context) Calculates the current object bounding box.Methods inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
canConstructViewPort, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getCurrentFontSize, getCurrentViewBox, getParent, isHidden, parseAbsoluteLength, parseHorizontalLength, parseVerticalLength, setAttribute, setAttributesAndStyles, setParent
-
Constructor Details
-
LineSvgNodeRenderer
public LineSvgNodeRenderer()
-
-
Method Details
-
doDraw
Description copied from class:AbstractSvgNodeRendererDraws this element to a canvas-like object maintained in the context.- Specified by:
-
doDrawin classAbstractSvgNodeRenderer - Parameters:
-
context- the object that knows the place to draw this element and maintains its state
-
getObjectBoundingBox
Description copied from interface:ISvgNodeRendererCalculates the current object bounding box.- Specified by:
-
getObjectBoundingBoxin interfaceISvgNodeRenderer - Parameters:
-
context- the current context, for instance it contains current viewport and available font data - Returns:
-
the
Rectanglerepresenting the current object's bounding box, or null if bounding box is undefined
-
canElementFill
protected boolean canElementFill()Description copied from class:AbstractSvgNodeRendererMethod to see if a certain renderer can use fill.- Overrides:
-
canElementFillin classAbstractSvgNodeRenderer - Returns:
- true if the renderer can use fill
-
createDeepCopy
Description copied from interface:ISvgNodeRendererCreates a deep copy of this renderer, including it's subtree of children- Specified by:
-
createDeepCopyin interfaceISvgNodeRenderer - Returns:
- deep copy of this renderer
-
drawMarker
Description copied from interface:IMarkerCapableDraws a marker in the specified context. The marker is drawn on the vertices defined according to the given marker type.- Specified by:
-
drawMarkerin interfaceIMarkerCapable - Parameters:
-
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
-
getAutoOrientAngle
Description copied from interface:IMarkerCapableCalculates marker orientation angle iforientattribute is set toauto- Specified by:
-
getAutoOrientAnglein interfaceIMarkerCapable - Parameters:
-
marker- marker for which the rotation angle should be calculated -
reverse- indicates that the resulting angle should be rotated 180 degrees - Returns:
- marker orientation angle so that its positive x-axis is pointing in the direction of the path at the point it is placed
-