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)
Creates the new
PathRenderInfo instance. |
Modifier and Type | Method and Description |
---|---|
List<CanvasTag> |
getCanvasTagHierarchy()
Gets hierarchy of the canvas tags that wraps given text.
|
int |
getClippingRule()
|
Matrix |
getCtm()
Gets the current transformation matrix.
|
Color |
getFillColor()
Gets the path's fill color.
|
int |
getLineCapStyle()
Gets the line cap style.
|
PdfArray |
getLineDashPattern()
Gets the path's dash pattern.
|
int |
getLineJoinStyle()
Gets the line join style.
|
float |
getLineWidth()
Gets the path's line width.
|
int |
getMcid()
Gets the marked-content identifier associated with this
PathRenderInfo instance |
float |
getMiterLimit()
Gets the miter limit.
|
int |
getOperation()
|
Path |
getPath()
Gets the
Path to be rendered |
int |
getRule()
|
Color |
getStrokeColor()
Gets the path's stroke color.
|
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()
Gets the clipping path flag.
|
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)
PathRenderInfo
instance.canvasTagHierarchy
- the canvas tag hierarchygs
- the graphics statepath
- the path to be renderedoperation
- 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 pathclipRule
- 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()
PdfCanvasConstants.FillingRule.NONZERO_WINDING
or PdfCanvasConstants.FillingRule.EVEN_ODD
.public boolean isPathModifiesClippingPath()
true
indicates that current path modifies the clipping pathpublic int getClippingRule()
PdfCanvasConstants.FillingRule.NONZERO_WINDING
or PdfCanvasConstants.FillingRule.EVEN_ODD
.public Matrix getCtm()
matrix
public float getLineWidth()
public int getLineCapStyle()
PdfCanvasConstants.LineCapStyle
.public int getLineJoinStyle()
PdfCanvasConstants.LineJoinStyle
.public float getMiterLimit()
public PdfArray getLineDashPattern()
PdfArray
public Color getStrokeColor()
color
public List<CanvasTag> getCanvasTagHierarchy()
public int getMcid()
PathRenderInfo
instancepublic boolean hasMcid(int mcid)
mcid
- a marked content idtrue
if the text is marked with this idpublic boolean hasMcid(int mcid, boolean checkTheTopmostLevelOnly)
mcid
- a marked content idcheckTheTopmostLevelOnly
- indicates whether to check the topmost level of marked content stack onlytrue
if the text is marked with this idCopyright © 1998–2023 Apryse Group NV. All rights reserved.