Package com.itextpdf.text.pdf.parser
Class PdfContentStreamProcessor.PaintPath
- java.lang.Object
-
- com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.PaintPath
-
- All Implemented Interfaces:
ContentOperator
- Enclosing class:
- PdfContentStreamProcessor
private static class PdfContentStreamProcessor.PaintPath extends java.lang.Object implements ContentOperator
A content operator implementation (S, s, f, F, f*, B, B*, b, b*).- Since:
- 5.5.6
-
-
Constructor Summary
Constructors Constructor Description PaintPath(int operation, int rule, boolean close)
Constructs PainPath object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
invoke(PdfContentStreamProcessor processor, PdfLiteral operator, java.util.ArrayList<PdfObject> operands)
Invokes a content operator.
-
-
-
Constructor Detail
-
PaintPath
public PaintPath(int operation, int rule, boolean close)
Constructs PainPath object.- Parameters:
operation
- One of the possible combinations ofPathPaintingRenderInfo.STROKE
andPathPaintingRenderInfo.FILL
values orPathPaintingRenderInfo.NO_OP
rule
- EitherPathPaintingRenderInfo.NONZERO_WINDING_RULE
orPathPaintingRenderInfo.EVEN_ODD_RULE
In case it isn't applicable pass any value.close
- Indicates whether the path should be closed or not.
-
-
Method Detail
-
invoke
public void invoke(PdfContentStreamProcessor processor, PdfLiteral operator, java.util.ArrayList<PdfObject> operands) throws java.lang.Exception
Description copied from interface:ContentOperator
Invokes a content operator.- Specified by:
invoke
in interfaceContentOperator
- Parameters:
processor
- the processor that is dealing with the PDF contentoperator
- the literal PDF syntax of the operatoroperands
- the operands that come with the operator- Throws:
java.lang.Exception
- any exception can be thrown - it will be re-packaged into a runtime exception and re-thrown by thePdfContentStreamProcessor
-
-