public class PathRenderInfo extends AbstractRenderInfo
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.
|
gs
Constructor and Description |
---|
PathRenderInfo(Stack<CanvasTag> canvasTagHierarchy, CanvasGraphicsState gs, Path path, int operation)
If the operation is NO_OP then the rule is ignored, otherwise PdfCanvasConstants.FillingRule.NONZERO_WINDING is used by default.
|
PathRenderInfo(Stack<CanvasTag> canvasTagHierarchy, CanvasGraphicsState gs, Path path, int operation, int rule, boolean isClip, int clipRule) |
Modifier and Type | Method and Description |
---|---|
List<CanvasTag> |
getCanvasTagHierarchy()
Gets hierarchy of the canvas tags that wraps given text.
|
int |
getClippingRule() |
Matrix |
getCtm() |
Color |
getFillColor() |
int |
getLineCapStyle() |
PdfArray |
getLineDashPattern() |
int |
getLineJoinStyle() |
float |
getLineWidth() |
int |
getMcid() |
float |
getMiterLimit() |
int |
getOperation() |
Path |
getPath() |
int |
getRule() |
Color |
getStrokeColor() |
boolean |
hasMcid(int mcid)
Checks if the text belongs to a marked content sequence with a given mcid.
|
boolean |
hasMcid(int mcid, boolean checkTheTopmostLevelOnly)
Checks if the text belongs to a marked content sequence with a given mcid.
|
boolean |
isPathModifiesClippingPath() |
checkGraphicsState, getGraphicsState, isGraphicsStatePreserved, preserveGraphicsState, releaseGraphicsState
public static final int NO_OP
public static final int STROKE
public static final int FILL
public PathRenderInfo(Stack<CanvasTag> canvasTagHierarchy, CanvasGraphicsState gs, Path path, int operation, int rule, boolean isClip, int clipRule)
gs
- The graphics state.
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
.
public PathRenderInfo(Stack<CanvasTag> canvasTagHierarchy, CanvasGraphicsState gs, Path path, int operation)
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(Stack, CanvasGraphicsState, Path, int, int, boolean, int)
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 List<CanvasTag> getCanvasTagHierarchy()
public int getMcid()
public boolean hasMcid(int mcid)
mcid
- a marked content id
public boolean hasMcid(int mcid, boolean checkTheTopmostLevelOnly)
mcid
- a marked content id
checkTheTopmostLevelOnly
- indicates whether to check the topmost level of marked content stack only
Copyright © 1998–2018 iText Group NV. All rights reserved.