Package com.itextpdf.svg.renderers
Interface IMarkerCapable
- All Known Implementing Classes:
-
LineSvgNodeRenderer,PathSvgNodeRenderer,PolygonSvgNodeRenderer,PolylineSvgNodeRenderer
public interface IMarkerCapable
Interface implemented by elements that support marker drawing. Defines methods for working with markers.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddrawMarker(SvgDrawContext context, MarkerVertexType markerVertexType) Draws a marker in the specified context.doublegetAutoOrientAngle(MarkerSvgNodeRenderer marker, boolean reverse) Calculates marker orientation angle iforientattribute is set toauto
-
Method Details
-
drawMarker
Draws a marker in the specified context. The marker is drawn on the vertices defined according to the given marker type.- 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
Calculates marker orientation angle iforientattribute is set toauto- 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
-