Class C2SContext2D

  • All Implemented Interfaces:
    IContext2D

    public class C2SContext2D
    extends Object
    implements IContext2D
    Delegation class to allow the abstraction of IContext2D, since the JsInterop classes does not allow methods override with JsOverlay annotation.
    • Constructor Detail

      • C2SContext2D

        public C2SContext2D​(double width,
                            double height,
                            Object nativeContext)
      • C2SContext2D

        protected C2SContext2D​(org.uberfire.ext.editor.commons.client.file.exports.jso.svg.C2S delegate)
    • Method Detail

      • setLineWidth

        public void setLineWidth​(double var1)
        Specified by:
        setLineWidth in interface IContext2D
      • setMiterLimit

        public void setMiterLimit​(double limit)
        Specified by:
        setMiterLimit in interface IContext2D
      • save

        public void save()
        Specified by:
        save in interface IContext2D
      • moveTo

        public void moveTo​(double x,
                           double y)
        Specified by:
        moveTo in interface IContext2D
      • lineTo

        public void lineTo​(double x,
                           double y)
        Specified by:
        lineTo in interface IContext2D
      • quadraticCurveTo

        public void quadraticCurveTo​(double cpx,
                                     double cpy,
                                     double x,
                                     double y)
        Specified by:
        quadraticCurveTo in interface IContext2D
      • arc

        public void arc​(double x,
                        double y,
                        double radius,
                        double startAngle,
                        double endAngle)
        Specified by:
        arc in interface IContext2D
      • arc

        public void arc​(double x,
                        double y,
                        double radius,
                        double startAngle,
                        double endAngle,
                        boolean antiClockwise)
        Specified by:
        arc in interface IContext2D
      • ellipse

        public void ellipse​(double x,
                            double y,
                            double rx,
                            double ry,
                            double ro,
                            double sa,
                            double ea,
                            boolean ac)
        Specified by:
        ellipse in interface IContext2D
      • ellipse

        public void ellipse​(double x,
                            double y,
                            double rx,
                            double ry,
                            double ro,
                            double sa,
                            double ea)
        Specified by:
        ellipse in interface IContext2D
      • arcTo

        public void arcTo​(double x1,
                          double y1,
                          double x2,
                          double y2,
                          double radius)
        Specified by:
        arcTo in interface IContext2D
      • bezierCurveTo

        public void bezierCurveTo​(double cp1x,
                                  double cp1y,
                                  double cp2x,
                                  double cp2y,
                                  double x,
                                  double y)
        Specified by:
        bezierCurveTo in interface IContext2D
      • clearRect

        public void clearRect​(double x,
                              double y,
                              double w,
                              double h)
        Specified by:
        clearRect in interface IContext2D
      • clip

        public void clip()
        Specified by:
        clip in interface IContext2D
      • fill

        public void fill()
        Specified by:
        fill in interface IContext2D
      • fillRect

        public void fillRect​(double x,
                             double y,
                             double w,
                             double h)
        Specified by:
        fillRect in interface IContext2D
      • fillText

        public void fillText​(String text,
                             double x,
                             double y)
        Specified by:
        fillText in interface IContext2D
      • createLinearGradient

        public elemental2.dom.CanvasGradient createLinearGradient​(double x0,
                                                                  double y0,
                                                                  double x1,
                                                                  double y1)
        Specified by:
        createLinearGradient in interface IContext2D
      • createRadialGradient

        public elemental2.dom.CanvasGradient createRadialGradient​(double x0,
                                                                  double y0,
                                                                  double r0,
                                                                  double x1,
                                                                  double y1,
                                                                  double r1)
        Specified by:
        createRadialGradient in interface IContext2D
      • rect

        public void rect​(double x,
                         double y,
                         double w,
                         double h)
        Specified by:
        rect in interface IContext2D
      • rotate

        public void rotate​(double angle)
        Specified by:
        rotate in interface IContext2D
      • scale

        public void scale​(double sx,
                          double sy)
        Specified by:
        scale in interface IContext2D
      • transform

        public void transform​(double d0,
                              double d1,
                              double d2,
                              double d3,
                              double d4,
                              double d5)
        Specified by:
        transform in interface IContext2D
      • setTransform

        public void setTransform​(double d0,
                                 double d1,
                                 double d2,
                                 double d3,
                                 double d4,
                                 double d5)
        Specified by:
        setTransform in interface IContext2D
      • translate

        public void translate​(double x,
                              double y)
        Specified by:
        translate in interface IContext2D
      • isPointInPath

        public boolean isPointInPath​(double x,
                                     double y)
        Specified by:
        isPointInPath in interface IContext2D
      • putImageData

        public void putImageData​(elemental2.dom.ImageData imageData,
                                 double x,
                                 double y)
        Specified by:
        putImageData in interface IContext2D
      • putImageData

        public void putImageData​(elemental2.dom.ImageData imageData,
                                 double x,
                                 double y,
                                 double dx,
                                 double dy,
                                 double dw,
                                 double dh)
        Specified by:
        putImageData in interface IContext2D
      • setLineDash

        public void setLineDash​(double[] dashes)
        Specified by:
        setLineDash in interface IContext2D
      • createImageData

        public elemental2.dom.HTMLCanvasElement createImageData​(elemental2.dom.ImageData data)
        Specified by:
        createImageData in interface IContext2D
      • getImageData

        public elemental2.dom.ImageData getImageData​(double x,
                                                     double y,
                                                     double width,
                                                     double height)
        Specified by:
        getImageData in interface IContext2D
      • createImageData

        public elemental2.dom.ImageData createImageData​(double width,
                                                        double height)
        Specified by:
        createImageData in interface IContext2D
      • drawImage

        public void drawImage​(elemental2.dom.Element image,
                              double x,
                              double y)
        Specified by:
        drawImage in interface IContext2D
      • drawImage

        public void drawImage​(elemental2.dom.Element image,
                              double x,
                              double y,
                              double w,
                              double h)
        Specified by:
        drawImage in interface IContext2D
      • drawImage

        public void drawImage​(elemental2.dom.Element image,
                              double sx,
                              double sy,
                              double sw,
                              double sh,
                              double x,
                              double y,
                              double w,
                              double h)
        Specified by:
        drawImage in interface IContext2D
      • getDelegate

        protected org.uberfire.ext.editor.commons.client.file.exports.jso.svg.C2S getDelegate()