Package com.itextpdf.svg.processors.impl
Class ProcessorState
java.lang.Object
com.itextpdf.svg.processors.impl.ProcessorState
Internal ProcessorState representation for
DefaultSvgProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
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
Adds an ISvgNodeRenderer to the processor's state.- Parameters:
-
svgNodeRenderer
- renderer to be added to the state
-
pop
Removes and returns the first renderer of the processor state.- Returns:
- the removed ISvgNodeRenderer object
-
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
-