public class PathRenderInfo extends Object implements IEventData
Modifier and Type | Field and Description |
---|---|
static int |
FILL
Value specifying fill operation to perform on the current path.
|
static int |
NO_OP
End the path object without filling or stroking it.
|
static int |
STROKE
Value specifying stroke operation to perform on the current path.
|
Constructor and Description |
---|
PathRenderInfo(Path path, int operation, CanvasGraphicsState gs)
If the operation is NO_OP then the rule is ignored, otherwise PdfCanvasConstants.FillingRule.NONZERO_WINDING is used by default.
|
PathRenderInfo(Path path, int operation, int rule, boolean isClip, int clipRule, CanvasGraphicsState gs) |
Modifier and Type | Method and Description |
---|---|
int |
getClippingRule() |
Matrix |
getCtm() |
Color |
getFillColor() |
int |
getLineCapStyle() |
PdfArray |
getLineDashPattern() |
int |
getLineJoinStyle() |
float |
getLineWidth() |
float |
getMiterLimit() |
int |
getOperation() |
Path |
getPath() |
int |
getRule() |
Color |
getStrokeColor() |
boolean |
isGraphicsStatePreserved() |
boolean |
isPathModifiesClippingPath() |
void |
preserveGraphicsState() |
void |
releaseGraphicsState() |
public static final int NO_OP
public static final int STROKE
public static final int FILL
public PathRenderInfo(Path path, int operation, int rule, boolean isClip, int clipRule, CanvasGraphicsState gs)
path
- The path to be rendered.
operation
- One of the possible combinations of STROKE
and FILL
values or NO_OP
rule
- Either PdfCanvasConstants.FillingRule.NONZERO_WINDING
or PdfCanvasConstants.FillingRule.EVEN_ODD
.
isClip
- True indicates that current path modifies the clipping path, false - if not.
clipRule
- Either PdfCanvasConstants.FillingRule.NONZERO_WINDING
or PdfCanvasConstants.FillingRule.EVEN_ODD
.
gs
- The graphics state.
public PathRenderInfo(Path path, int operation, CanvasGraphicsState gs)
NO_OP
then the rule is ignored, otherwise PdfCanvasConstants.FillingRule.NONZERO_WINDING
is used by default. With this constructor path is considered as not modifying clipping path.
See PathRenderInfo(Path, int, int, boolean, int, CanvasGraphicsState)
public int getOperation()
public int getRule()
public boolean isPathModifiesClippingPath()
public int getClippingRule()
public Matrix getCtm()
public float getLineWidth()
public int getLineCapStyle()
public int getLineJoinStyle()
public float getMiterLimit()
public PdfArray getLineDashPattern()
public Color getStrokeColor()
public Color getFillColor()
public boolean isGraphicsStatePreserved()
public void preserveGraphicsState()
public void releaseGraphicsState()
Copyright © 1998–2018 iText Group NV. All rights reserved.