Class UseSvgNodeRenderer

  • All Implemented Interfaces:
    ISvgNodeRenderer

    public class UseSvgNodeRenderer
    extends AbstractSvgNodeRenderer
    Renderer implementing the use tag. This tag allows you to reuse previously defined elements.
    • Constructor Detail

      • UseSvgNodeRenderer

        public UseSvgNodeRenderer()
    • Method Detail

      • doDraw

        protected void doDraw​(SvgDrawContext context)
        Description copied from class: AbstractSvgNodeRenderer
        Draws this element to a canvas-like object maintained in the context.
        Specified by:
        doDraw in class AbstractSvgNodeRenderer
        Parameters:
        context - the object that knows the place to draw this element and maintains its state
      • isValidHref

        private boolean isValidHref​(java.lang.String name)
      • createDeepCopy

        public ISvgNodeRenderer createDeepCopy()
        Description copied from interface: ISvgNodeRenderer
        Creates a deep copy of this renderer, including it's subtree of children
        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