public static class PdfDevice.PdfGraphicContext extends GraphicContext implements java.lang.Cloneable
Holds current graphics control parameters for the PdfDevice. These parameters define the global framework within which the graphics operators execute.
| Constructor and Description |
|---|
PdfGraphicContext() |
| Modifier and Type | Method and Description |
|---|---|
GraphicContext |
deepClone()
Creates a new instance of a class with the same property values as an existing instance.
|
PdfDevice |
getDevice() |
IBrush |
getFillBrush()
Sets or gets the brush object that is used to fill the interiors of paths.
|
int |
getGeneration() |
int |
getLineCap()
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
|
int |
getLineJoin()
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
|
float |
getLineWidth()
Sets or gets the thickness of paths to be stroked.
|
float |
getMiterLimit()
Sets or gets the maximum length of mitered line joins for stroked paths.
|
com.aspose.html.rendering.pdf.PdfPage |
getPage() |
boolean |
getSetDirectTransform() |
IBrush |
getStrokeBrush()
Sets or gets the brush object that is used for stroked paths.
|
float |
getTextLeading() |
com.aspose.ms.System.Drawing.Drawing2D.Matrix |
getTransformationMatrix()
Sets or gets transformation matrix.
|
boolean |
isTransparencyNonDefault()
Informs
PdfPage that the current transparency is non-default. |
protected java.lang.Object |
memberwiseClone() |
void |
setDevice(PdfDevice value) |
void |
setFillBrush(IBrush value)
Sets or gets the brush object that is used to fill the interiors of paths.
|
void |
setGeneration(int value) |
void |
setLineCap(int value)
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
|
void |
setLineJoin(int value)
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
|
void |
setLineWidth(float value)
Sets or gets the thickness of paths to be stroked.
|
void |
setMiterLimit(float value)
Sets or gets the maximum length of mitered line joins for stroked paths.
|
void |
setPage(com.aspose.html.rendering.pdf.PdfPage value) |
void |
setSetDirectTransform(boolean value) |
void |
setStrokeBrush(IBrush value)
Sets or gets the brush object that is used for stroked paths.
|
void |
setTextLeading(float value) |
void |
setTransformationMatrix(com.aspose.ms.System.Drawing.Drawing2D.Matrix value)
Sets or gets transformation matrix.
|
void |
transform(com.aspose.ms.System.Drawing.Drawing2D.Matrix matrix)
Modify the current transformation matrix by multiplying the specified matrix.
|
void |
writeColor(com.aspose.ms.System.Drawing.Color color,
boolean isStroking) |
void |
writeColorSpace(com.aspose.html.rendering.pdf.graphics.PdfColorSpace colorSpace,
boolean isStroking) |
void |
writeTextCharSpace() |
void |
writeTextFont(com.aspose.html.rendering.pdf.fonts.PdfFont font) |
void |
writeTextLeading(float leading) |
void |
writeTextRenderingMode(int mode) |
getCharacterSpacing, getFont, getFontSize, getFontStyle, getLineDashCap, getLineDashOffset, getLineDashPattern, getLineDashStyle, setCharacterSpacing, setFont, setFontSize, setFontStyle, setLineDashCap, setLineDashOffset, setLineDashPattern, setLineDashStylepublic PdfDevice getDevice()
public void setDevice(PdfDevice value)
public int getGeneration()
public void setGeneration(int value)
public boolean getSetDirectTransform()
public void setSetDirectTransform(boolean value)
public com.aspose.html.rendering.pdf.PdfPage getPage()
public void setPage(com.aspose.html.rendering.pdf.PdfPage value)
public IBrush getFillBrush()
Sets or gets the brush object that is used to fill the interiors of paths.
getFillBrush in class GraphicContextpublic void setFillBrush(IBrush value)
Sets or gets the brush object that is used to fill the interiors of paths.
setFillBrush in class GraphicContextpublic int getLineCap()
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
getLineCap in class GraphicContextpublic void setLineCap(int value)
Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
setLineCap in class GraphicContextpublic int getLineJoin()
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
getLineJoin in class GraphicContextpublic void setLineJoin(int value)
Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
setLineJoin in class GraphicContextpublic float getLineWidth()
Sets or gets the thickness of paths to be stroked.
getLineWidth in class GraphicContextpublic void setLineWidth(float value)
Sets or gets the thickness of paths to be stroked.
setLineWidth in class GraphicContextpublic float getMiterLimit()
Sets or gets the maximum length of mitered line joins for stroked paths. This parameter limits the length of "spikes" produced when line segments join at sharp angles.
getMiterLimit in class GraphicContextpublic void setMiterLimit(float value)
Sets or gets the maximum length of mitered line joins for stroked paths. This parameter limits the length of "spikes" produced when line segments join at sharp angles.
setMiterLimit in class GraphicContextpublic IBrush getStrokeBrush()
Sets or gets the brush object that is used for stroked paths.
getStrokeBrush in class GraphicContextpublic void setStrokeBrush(IBrush value)
Sets or gets the brush object that is used for stroked paths.
setStrokeBrush in class GraphicContextpublic void transform(com.aspose.ms.System.Drawing.Drawing2D.Matrix matrix)
Modify the current transformation matrix by multiplying the specified matrix.
transform in class GraphicContextmatrix - Transformation matrix.public com.aspose.ms.System.Drawing.Drawing2D.Matrix getTransformationMatrix()
Sets or gets transformation matrix.
getTransformationMatrix in class GraphicContextpublic void setTransformationMatrix(com.aspose.ms.System.Drawing.Drawing2D.Matrix value)
Sets or gets transformation matrix.
setTransformationMatrix in class GraphicContextpublic GraphicContext deepClone()
Creates a new instance of a class with the same property values as an existing instance.
deepClone in interface com.aspose.ms.System.ICloneabledeepClone in class GraphicContextpublic boolean isTransparencyNonDefault()
Informs PdfPage that the current transparency is non-default.
public float getTextLeading()
public void setTextLeading(float value)
public void writeColor(com.aspose.ms.System.Drawing.Color color,
boolean isStroking)
public void writeTextFont(com.aspose.html.rendering.pdf.fonts.PdfFont font)
public void writeTextCharSpace()
public void writeTextRenderingMode(int mode)
public void writeTextLeading(float leading)
public void writeColorSpace(com.aspose.html.rendering.pdf.graphics.PdfColorSpace colorSpace,
boolean isStroking)
protected java.lang.Object memberwiseClone()
memberwiseClone in class GraphicContext