Class ProcessorState


  • public class ProcessorState
    extends java.lang.Object
    Internal ProcessorState representation for DefaultSvgProcessor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Stack<ISvgNodeRenderer> stack  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessorState()
      Instantiates the processor state.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      ISvgNodeRenderer 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.
      ISvgNodeRenderer 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 Detail

      • ProcessorState

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

      • 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