Class MarkerSvgNodeRenderer

All Implemented Interfaces:
IBranchSvgNodeRenderer, ISvgNodeRenderer

public class MarkerSvgNodeRenderer extends AbstractBranchSvgNodeRenderer
ISvgNodeRenderer implementation for the tag.
  • Field Details

    • MARKER_INDEX

      public static final String MARKER_INDEX
      Attribute defining the marker index on polygon, line or polyline. It is not a property from css standard, used for internal marker processing.
      See Also:
  • Constructor Details

    • MarkerSvgNodeRenderer

      public MarkerSvgNodeRenderer()
  • Method Details

    • createDeepCopy

      public ISvgNodeRenderer createDeepCopy()
      Description copied from interface: ISvgNodeRenderer
      Creates a deep copy of this renderer, including it's subtree of children
      Specified by:
      createDeepCopy in interface ISvgNodeRenderer
      Specified by:
      createDeepCopy in class AbstractBranchSvgNodeRenderer
      Returns:
      deep copy of this renderer
    • getObjectBoundingBox

      public Rectangle getObjectBoundingBox (SvgDrawContext context)
      Description copied from interface: ISvgNodeRenderer
      Calculates the current object bounding box.
      Parameters:
      context - the current context, for instance it contains current viewport and available font data
      Returns:
      the Rectangle representing the current object's bounding box, or null if bounding box is undefined
    • isHidden

      protected boolean isHidden()
      Description copied from class: AbstractSvgNodeRenderer
      Check if this renderer should draw the element based on its attributes (e.g. visibility/display)
      Overrides:
      isHidden in class AbstractSvgNodeRenderer
      Returns:
      true if element won't be drawn, false otherwise
    • applyViewBox

      protected void applyViewBox (SvgDrawContext context)