Class ProcessorState

java.lang.Object
com.itextpdf.svg.processors.impl.ProcessorState

public class ProcessorState extends Object
Internal ProcessorState representation for DefaultSvgProcessor
  • Field Details

  • Constructor Details

    • ProcessorState

      public ProcessorState()
      Instantiates the processor state.
  • Method Details

    • size

      public int size()
      Returns the amount of ISvgNodeRenderers being processed.
      Returns:
      amount of ISvgNodeRenderers
    • push

      public void push(ISvgNodeRenderer svgNodeRenderer)
      Adds an ISvgNodeRenderer to the processor's state.
      Parameters:
      svgNodeRenderer - renderer to be added to the state
    • pop

      public ISvgNodeRenderer pop()
      Removes and returns the first renderer of the processor state.
      Returns:
      the removed ISvgNodeRenderer object
    • top

      public ISvgNodeRenderer top()
      Returns the first ISvgNodeRenderer object without removing it.
      Returns:
      the first ISvgNodeRenderer
    • empty

      public boolean empty()
      Returns true when the processorstate is empty, false when there is at least one ISvgNodeRenderer in the state.
      Returns:
      true if empty, false if not empty