Class ProcessorState

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

public class ProcessorState extends Object
Internal ProcessorState representation for DefaultSvgProcessor
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates the processor state.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    empty()
    Returns true when the processorstate is empty, false when there is at least one ISvgNodeRenderer in the state.
    pop()
    Removes and returns the first renderer of the processor state.
    void
    push(ISvgNodeRenderer svgNodeRenderer)
    Adds an ISvgNodeRenderer to the processor's state.
    int
    size()
    Returns the amount of ISvgNodeRenderers being processed.
    top()
    Returns the first ISvgNodeRenderer object without removing it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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