Class PdfContentStreamProcessor.PaintPath
java.lang.Object
com.itextpdf.text.pdf.parser.PdfContentStreamProcessor.PaintPath
- All Implemented Interfaces:
ContentOperator
- Enclosing class:
PdfContentStreamProcessor
A content operator implementation (S, s, f, F, f*, B, B*, b, b*).
- Since:
- 5.5.6
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPaintPath(int operation, int rule, boolean close) Constructs PainPath object. -
Method Summary
Modifier and TypeMethodDescriptionvoidinvoke(PdfContentStreamProcessor processor, PdfLiteral operator, ArrayList<PdfObject> operands) Invokes a content operator.
-
Field Details
-
operation
private int operation -
rule
private int rule -
close
private boolean close
-
-
Constructor Details
-
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 Details
-
invoke
public void invoke(PdfContentStreamProcessor processor, PdfLiteral operator, ArrayList<PdfObject> operands) throws 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:
Exception- any exception can be thrown - it will be re-packaged into a runtime exception and re-thrown by thePdfContentStreamProcessor
-