Class PdfCanvasProcessor.PaintPathOperator
java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.PdfCanvasProcessor.PaintPathOperator
- All Implemented Interfaces:
IContentOperator
- Enclosing class:
PdfCanvasProcessor
private static class PdfCanvasProcessor.PaintPathOperator
extends Object
implements IContentOperator
A handler that implements operator (S, s, f, F, f*, B, B*, b, b*). For more information see Table 51 ISO-32000-1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPaintPathOperator
(int operation, int rule, boolean close) Constructs PainPath object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(PdfCanvasProcessor processor, PdfLiteral operator, List<PdfObject> operands) Called when a content operator should be processed.
-
Field Details
-
operation
private int operation -
rule
private int rule -
close
private boolean close
-
-
Constructor Details
-
PaintPathOperator
public PaintPathOperator(int operation, int rule, boolean close) Constructs PainPath object.- Parameters:
operation
- One of the possible combinations ofPathRenderInfo.STROKE
andPathRenderInfo.FILL
values orPathRenderInfo.NO_OP
rule
- EitherPdfCanvasConstants.FillingRule.NONZERO_WINDING
orPdfCanvasConstants.FillingRule.EVEN_ODD
In case it isn't applicable pass any value.close
- Indicates whether the path should be closed or not.
-
-
Method Details
-
invoke
Called when a content operator should be processed.- Specified by:
invoke
in interfaceIContentOperator
- Parameters:
processor
- The processor that is dealing with the PDF content stream.operator
- The literal PDF syntax of the operator.operands
- The operands that come with the operator.
-