Class SwtGc

  • All Implemented Interfaces:
    IGc

    public class SwtGc
    extends Object
    implements IGc
    • Field Detail

      • background

        protected org.eclipse.swt.graphics.Color background
      • black

        protected org.eclipse.swt.graphics.Color black
      • white

        protected org.eclipse.swt.graphics.Color white
      • red

        protected org.eclipse.swt.graphics.Color red
      • yellow

        protected org.eclipse.swt.graphics.Color yellow
      • hopFalse

        protected org.eclipse.swt.graphics.Color hopFalse
      • green

        protected org.eclipse.swt.graphics.Color green
      • blue

        protected org.eclipse.swt.graphics.Color blue
      • magenta

        protected org.eclipse.swt.graphics.Color magenta
      • purpule

        protected org.eclipse.swt.graphics.Color purpule
      • indigo

        protected org.eclipse.swt.graphics.Color indigo
      • gray

        protected org.eclipse.swt.graphics.Color gray
      • lightGray

        protected org.eclipse.swt.graphics.Color lightGray
      • darkGray

        protected org.eclipse.swt.graphics.Color darkGray
      • lightBlue

        protected org.eclipse.swt.graphics.Color lightBlue
      • crystal

        protected org.eclipse.swt.graphics.Color crystal
      • hopDefault

        protected org.eclipse.swt.graphics.Color hopDefault
      • hopTrue

        protected org.eclipse.swt.graphics.Color hopTrue
      • deprecated

        protected org.eclipse.swt.graphics.Color deprecated
    • Constructor Detail

      • SwtGc

        public SwtGc​(org.eclipse.swt.graphics.GC gc,
                     int width,
                     int height,
                     int iconSize)
    • Method Detail

      • dispose

        public void dispose()
        Specified by:
        dispose in interface IGc
      • drawLine

        public void drawLine​(int x,
                             int y,
                             int x2,
                             int y2)
        Specified by:
        drawLine in interface IGc
      • drawImage

        public void drawImage​(IGc.EImage image,
                              int x,
                              int y,
                              float magnification)
        Specified by:
        drawImage in interface IGc
      • drawImage

        public void drawImage​(IGc.EImage image,
                              int x,
                              int y,
                              int width,
                              int height,
                              float magnification)
      • drawImage

        public void drawImage​(IGc.EImage image,
                              int x,
                              int y,
                              float magnification,
                              double angle)
        Specified by:
        drawImage in interface IGc
      • drawPoint

        public void drawPoint​(int x,
                              int y)
        Specified by:
        drawPoint in interface IGc
      • drawPolygon

        public void drawPolygon​(int[] polygon)
        Specified by:
        drawPolygon in interface IGc
      • drawPolyline

        public void drawPolyline​(int[] polyline)
        Specified by:
        drawPolyline in interface IGc
      • drawRectangle

        public void drawRectangle​(int x,
                                  int y,
                                  int width,
                                  int height)
        Specified by:
        drawRectangle in interface IGc
      • drawRoundRectangle

        public void drawRoundRectangle​(int x,
                                       int y,
                                       int width,
                                       int height,
                                       int circleWidth,
                                       int circleHeight)
        Specified by:
        drawRoundRectangle in interface IGc
      • drawText

        public void drawText​(String text,
                             int x,
                             int y)
        Specified by:
        drawText in interface IGc
      • drawText

        public void drawText​(String text,
                             int x,
                             int y,
                             boolean transparent)
        Specified by:
        drawText in interface IGc
      • fillPolygon

        public void fillPolygon​(int[] polygon)
        Specified by:
        fillPolygon in interface IGc
      • fillRectangle

        public void fillRectangle​(int x,
                                  int y,
                                  int width,
                                  int height)
        Specified by:
        fillRectangle in interface IGc
      • fillGradientRectangle

        public void fillGradientRectangle​(int x,
                                          int y,
                                          int width,
                                          int height,
                                          boolean vertical)
        Specified by:
        fillGradientRectangle in interface IGc
      • fillRoundRectangle

        public void fillRoundRectangle​(int x,
                                       int y,
                                       int width,
                                       int height,
                                       int circleWidth,
                                       int circleHeight)
        Specified by:
        fillRoundRectangle in interface IGc
      • setAlpha

        public void setAlpha​(int alpha)
        Specified by:
        setAlpha in interface IGc
      • getAlpha

        public int getAlpha()
        Specified by:
        getAlpha in interface IGc
      • setLineWidth

        public void setLineWidth​(int width)
        Specified by:
        setLineWidth in interface IGc
      • setTransform

        public void setTransform​(float translationX,
                                 float translationY,
                                 float magnification)
        Specified by:
        setTransform in interface IGc
      • getMagnification

        public float getMagnification()
        Specified by:
        getMagnification in interface IGc
      • drawTransformIcon

        public void drawTransformIcon​(int x,
                                      int y,
                                      TransformMeta transformMeta,
                                      float magnification)
        Specified by:
        drawTransformIcon in interface IGc
      • drawActionIcon

        public void drawActionIcon​(int x,
                                   int y,
                                   ActionMeta actionMeta,
                                   float magnification)
        Specified by:
        drawActionIcon in interface IGc
      • drawImage

        public void drawImage​(SvgFile svgFile,
                              int x,
                              int y,
                              int desiredWidth,
                              int desiredHeight,
                              float magnification,
                              double angle)
                       throws HopException
        Specified by:
        drawImage in interface IGc
        Throws:
        HopException
      • setAntialias

        public void setAntialias​(boolean antiAlias)
        Specified by:
        setAntialias in interface IGc
      • setBackground

        public void setBackground​(int r,
                                  int g,
                                  int b)
        Specified by:
        setBackground in interface IGc
      • setForeground

        public void setForeground​(int r,
                                  int g,
                                  int b)
        Specified by:
        setForeground in interface IGc
      • setFont

        public void setFont​(String fontName,
                            int fontSize,
                            boolean fontBold,
                            boolean fontItalic)
        Specified by:
        setFont in interface IGc
      • getArea

        public Point getArea()
        Specified by:
        getArea in interface IGc