Class AbstractContainerSvgNodeRenderer

All Implemented Interfaces:
IBranchSvgNodeRenderer, ISvgNodeRenderer
Direct Known Subclasses:
SvgTagSvgNodeRenderer, SymbolSvgNodeRenderer

public abstract class AbstractContainerSvgNodeRenderer extends AbstractBranchSvgNodeRenderer
  • Constructor Details

    • AbstractContainerSvgNodeRenderer

      public AbstractContainerSvgNodeRenderer()
  • Method Details

    • canConstructViewPort

      public boolean canConstructViewPort()
      Description copied from class: AbstractSvgNodeRenderer
      Method to see if the renderer can create a viewport
      Overrides:
      canConstructViewPort in class AbstractSvgNodeRenderer
      Returns:
      true if the renderer can construct a viewport
    • canElementFill

      protected boolean canElementFill()
      Description copied from class: AbstractSvgNodeRenderer
      Method to see if a certain renderer can use fill.
      Overrides:
      canElementFill in class AbstractSvgNodeRenderer
      Returns:
      true if the renderer can use fill
    • doDraw

      protected void doDraw(SvgDrawContext context)
      Description copied from class: AbstractBranchSvgNodeRenderer
      Method that will set properties to be inherited by this branch renderer's children and will iterate over all children in order to draw them.
      Overrides:
      doDraw in class AbstractBranchSvgNodeRenderer
      Parameters:
      context - the object that knows the place to draw this element and maintains its state
    • calculateViewPort

      Rectangle calculateViewPort(SvgDrawContext context)
      Calculate the viewport based on the context.
      Parameters:
      context - the SVG draw context
      Returns:
      the viewport that applies to this renderer