com.aspose.html.rendering.pdf

Class PdfDevice.PdfGraphicContext

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable, Cloneable
    Enclosing class:
    PdfDevice


    public static class PdfDevice.PdfGraphicContext
    extends GraphicContext
    implements Cloneable

    Holds current graphics control parameters for the PdfDevice. These parameters define the global framework within which the graphics operators execute.

    • Constructor Detail

      • PdfGraphicContext

        public PdfGraphicContext()
    • Method Detail

      • setDevice

        public void setDevice(PdfDevice value)
      • getGeneration

        public int getGeneration()
      • setGeneration

        public void setGeneration(int value)
      • getSetDirectTransform

        public boolean getSetDirectTransform()
      • setSetDirectTransform

        public void setSetDirectTransform(boolean value)
      • getPage

        public PdfPage getPage()
      • setPage

        public void setPage(PdfPage value)
      • getFillBrush

        public IBrush getFillBrush()

        Gets the brush object that is used to fill the interiors of paths.

        Overrides:
        getFillBrush in class GraphicContext
      • setFillBrush

        public void setFillBrush(IBrush value)

        Sets the brush object that is used to fill the interiors of paths.

        Overrides:
        setFillBrush in class GraphicContext
      • getLineCap

        public int getLineCap()

        Gets the code specifying the shape of the endpoints for any open path that is stroked.

        Overrides:
        getLineCap in class GraphicContext
      • setLineCap

        public void setLineCap(int value)

        Sets the code specifying the shape of the endpoints for any open path that is stroked.

        Overrides:
        setLineCap in class GraphicContext
      • getLineJoin

        public int getLineJoin()

        Gets the code specifying the shape of joints between connected segments of a stroked path.

        Overrides:
        getLineJoin in class GraphicContext
      • setLineJoin

        public void setLineJoin(int value)

        Sets the code specifying the shape of joints between connected segments of a stroked path.

        Overrides:
        setLineJoin in class GraphicContext
      • getLineWidth

        public float getLineWidth()

        Gets the thickness of paths to be stroked.

        Overrides:
        getLineWidth in class GraphicContext
      • setLineWidth

        public void setLineWidth(float value)

        Sets the thickness of paths to be stroked.

        Overrides:
        setLineWidth in class GraphicContext
      • getMiterLimit

        public float getMiterLimit()

        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.

        Overrides:
        getMiterLimit in class GraphicContext
      • setMiterLimit

        public void setMiterLimit(float value)

        Sets 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.

        Overrides:
        setMiterLimit in class GraphicContext
      • transform

        public void transform(com.aspose.ms.System.Drawing.Drawing2D.Matrix matrix)

        Modify the current transformation matrix by multiplying the specified matrix.

        Overrides:
        transform in class GraphicContext
        Parameters:
        matrix - Transformation matrix.
      • getTransformationMatrix

        public com.aspose.ms.System.Drawing.Drawing2D.Matrix getTransformationMatrix()

        Gets transformation matrix.

        Overrides:
        getTransformationMatrix in class GraphicContext
      • setTransformationMatrix

        public void setTransformationMatrix(com.aspose.ms.System.Drawing.Drawing2D.Matrix value)

        Sets transformation matrix.

        Overrides:
        setTransformationMatrix in class GraphicContext
      • deepClone

        public GraphicContext deepClone()

        Creates a new instance of a class with the same property values as an existing instance.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Overrides:
        deepClone in class GraphicContext
        Returns:
        Instance of a GraphicContext
      • isTransparencyNonDefault

        public boolean isTransparencyNonDefault()

        Informs PdfPage that the current transparency is non-default.

      • getTextLeading

        public float getTextLeading()
      • setTextLeading

        public void setTextLeading(float value)
      • writeColor

        public void writeColor(com.aspose.ms.System.Drawing.Color color,
                               boolean isStroking)
      • writeTextFont

        public void writeTextFont(PdfFont font)
      • writeTextCharSpace

        public void writeTextCharSpace()
      • writeTextRenderingMode

        public void writeTextRenderingMode(int mode)
      • writeTextLeading

        public void writeTextLeading(float leading)
      • writeColorSpace

        public void writeColorSpace(PdfColorSpace colorSpace,
                                    boolean isStroking)