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 Details

    • drawMarker

      void drawMarker (SvgDrawContext context, MarkerVertexType markerVertexType)
      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

      double getAutoOrientAngle (MarkerSvgNodeRenderer marker, boolean reverse)
      Calculates marker orientation angle if orient attribute is set to auto
      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