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 TypeMethodDescriptionvoidinvoke(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.STROKEandPathRenderInfo.FILLvalues orPathRenderInfo.NO_OPrule- EitherPdfCanvasConstants.FillingRule.NONZERO_WINDINGorPdfCanvasConstants.FillingRule.EVEN_ODDIn 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:
invokein 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.
-