com.aspose.html.dom.canvas

Interface ICanvasDrawingStyles

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.String getFont()
      Font setting.
      java.lang.String getLineCap()
      Type of endings on the end of lines.
      double[] getLineDash()
      Returns the current line dash pattern array containing an even number of non-negative numbers.
      double getLineDashOffset()
      Specifies where to start a dash array on a line.
      java.lang.String getLineJoin()
      Defines the type of corners where two lines meet.
      double getLineWidth()
      Width of lines.
      double getMiterLimit()
      Miter limit ratio.
      java.lang.String getTextAlign()
      Text alignment setting.
      java.lang.String getTextBaseline()
      Baseline alignment setting.
      void setFont(java.lang.String value)
      Font setting.
      void setLineCap(java.lang.String value)
      Type of endings on the end of lines.
      void setLineDash(double[] segments)
      Sets the current line dash pattern.
      void setLineDashOffset(double value)
      Specifies where to start a dash array on a line.
      void setLineJoin(java.lang.String value)
      Defines the type of corners where two lines meet.
      void setLineWidth(double value)
      Width of lines.
      void setMiterLimit(double value)
      Miter limit ratio.
      void setTextAlign(java.lang.String value)
      Text alignment setting.
      void setTextBaseline(java.lang.String value)
      Baseline alignment setting.
    • Method Detail

      • setLineWidth

        @DOMNameAttribute(name="lineWidth")
        void setLineWidth(double value)

        Width of lines. Default 1.0

      • getLineCap

        @DOMNameAttribute(name="lineCap")
        java.lang.String getLineCap()

        Type of endings on the end of lines. Possible values: butt (default), round, square.

      • setLineCap

        @DOMNameAttribute(name="lineCap")
        void setLineCap(java.lang.String value)

        Type of endings on the end of lines. Possible values: butt (default), round, square.

      • getLineJoin

        @DOMNameAttribute(name="lineJoin")
        java.lang.String getLineJoin()

        Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default).

      • setLineJoin

        @DOMNameAttribute(name="lineJoin")
        void setLineJoin(java.lang.String value)

        Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default).

      • getMiterLimit

        @DOMNameAttribute(name="miterLimit")
        double getMiterLimit()

        Miter limit ratio. Default 10.

      • setMiterLimit

        @DOMNameAttribute(name="miterLimit")
        void setMiterLimit(double value)

        Miter limit ratio. Default 10.

      • getLineDash

        @DOMNameAttribute(name="getLineDash")
        double[] getLineDash()

        Returns the current line dash pattern array containing an even number of non-negative numbers.

        Returns:
        An Array. A list of numbers that specifies distances to alternately draw a line and a gap (in coordinate space units).
      • setLineDash

        @DOMNameAttribute(name="setLineDash")
        void setLineDash(double[] segments)

        Sets the current line dash pattern.

        Parameters:
        segments - An Array of numbers which specify distances to alternately draw a line and a gap (in coordinate space units)
      • getLineDashOffset

        @DOMNameAttribute(name="lineDashOffset")
        double getLineDashOffset()

        Specifies where to start a dash array on a line.

      • setLineDashOffset

        @DOMNameAttribute(name="lineDashOffset")
        void setLineDashOffset(double value)

        Specifies where to start a dash array on a line.

      • getFont

        @DOMNameAttribute(name="font")
        java.lang.String getFont()

        Font setting. Default value 10px sans-serif

      • setFont

        @DOMNameAttribute(name="font")
        void setFont(java.lang.String value)

        Font setting. Default value 10px sans-serif

      • getTextAlign

        @DOMNameAttribute(name="textAlign")
        java.lang.String getTextAlign()

        Text alignment setting. Possible values: start (default), end, left, right or center.

      • setTextAlign

        @DOMNameAttribute(name="textAlign")
        void setTextAlign(java.lang.String value)

        Text alignment setting. Possible values: start (default), end, left, right or center.

      • getTextBaseline

        @DOMNameAttribute(name="textBaseline")
        java.lang.String getTextBaseline()

        Baseline alignment setting. Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom.

      • setTextBaseline

        @DOMNameAttribute(name="textBaseline")
        void setTextBaseline(java.lang.String value)

        Baseline alignment setting. Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom.