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
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 TypeMethodDescriptionvoid
invoke
(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.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 Details
-
invoke
public void invoke(PdfContentStreamProcessor processor, PdfLiteral operator, ArrayList<PdfObject> operands) throws 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:
Exception
- any exception can be thrown - it will be re-packaged into a runtime exception and re-thrown by thePdfContentStreamProcessor
-