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 voidinvoke(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.STROKEandPathPaintingRenderInfo.FILLvalues orPathPaintingRenderInfo.NO_OPrule- EitherPathPaintingRenderInfo.NONZERO_WINDING_RULEorPathPaintingRenderInfo.EVEN_ODD_RULEIn 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:ContentOperatorInvokes a content operator.- Specified by:
invokein 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
-
-