Class SWTGC

  • All Implemented Interfaces:
    org.pentaho.di.core.gui.GCInterface, org.pentaho.di.core.gui.PrimitiveGCInterface

    public class SWTGC
    extends Object
    implements org.pentaho.di.core.gui.GCInterface
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.pentaho.di.core.gui.PrimitiveGCInterface

        org.pentaho.di.core.gui.PrimitiveGCInterface.EColor, org.pentaho.di.core.gui.PrimitiveGCInterface.EFont, org.pentaho.di.core.gui.PrimitiveGCInterface.EImage, org.pentaho.di.core.gui.PrimitiveGCInterface.ELineStyle
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.eclipse.swt.graphics.Color background  
      protected org.eclipse.swt.graphics.Color black  
      protected org.eclipse.swt.graphics.Color blue  
      protected org.eclipse.swt.graphics.Color crystal  
      protected org.eclipse.swt.graphics.Color darkGray  
      protected org.eclipse.swt.graphics.Color deprecated  
      protected org.eclipse.swt.graphics.Color gray  
      protected org.eclipse.swt.graphics.Color green  
      protected org.eclipse.swt.graphics.Color hopDefault  
      protected org.eclipse.swt.graphics.Color hopOK  
      protected org.eclipse.swt.graphics.Color lightBlue  
      protected org.eclipse.swt.graphics.Color lightGray  
      protected org.eclipse.swt.graphics.Color magenta  
      protected org.eclipse.swt.graphics.Color orange  
      protected org.eclipse.swt.graphics.Color red  
      protected org.eclipse.swt.graphics.Color white  
      protected org.eclipse.swt.graphics.Color yellow  
    • Constructor Summary

      Constructors 
      Constructor Description
      SWTGC​(org.eclipse.swt.graphics.Device device, org.pentaho.di.core.gui.Point area, int iconsize)  
      SWTGC​(org.eclipse.swt.graphics.GC gc, org.pentaho.di.core.gui.Point area, int iconsize)  
    • 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
      • orange

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

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

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

        protected org.eclipse.swt.graphics.Color magenta
      • 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
      • hopOK

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

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

      • SWTGC

        public SWTGC​(org.eclipse.swt.graphics.Device device,
                     org.pentaho.di.core.gui.Point area,
                     int iconsize)
      • SWTGC

        public SWTGC​(org.eclipse.swt.graphics.GC gc,
                     org.pentaho.di.core.gui.Point area,
                     int iconsize)
    • Method Detail

      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawLine

        public void drawLine​(int x,
                             int y,
                             int x2,
                             int y2)
        Specified by:
        drawLine in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawImage

        public void drawImage​(String location,
                              ClassLoader classLoader,
                              int x,
                              int y)
        Specified by:
        drawImage in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawImage

        public void drawImage​(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image,
                              int x,
                              int y)
        Specified by:
        drawImage in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawImage

        public void drawImage​(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image,
                              int x,
                              int y,
                              float magnification)
        Specified by:
        drawImage in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawImage

        public void drawImage​(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image,
                              int x,
                              int y,
                              int width,
                              int height,
                              float magnification)
        Specified by:
        drawImage in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawImage

        public void drawImage​(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image,
                              int x,
                              int y,
                              float magnification,
                              double angle)
        Specified by:
        drawImage in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • getImageBounds

        public org.pentaho.di.core.gui.Point getImageBounds​(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image)
        Specified by:
        getImageBounds in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • getNativeImage

        public static final SwtUniversalImage getNativeImage​(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage image)
      • drawPoint

        public void drawPoint​(int x,
                              int y)
        Specified by:
        drawPoint in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawPolygon

        public void drawPolygon​(int[] polygon)
        Specified by:
        drawPolygon in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawPolyline

        public void drawPolyline​(int[] polyline)
        Specified by:
        drawPolyline in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawRectangle

        public void drawRectangle​(int x,
                                  int y,
                                  int width,
                                  int height)
        Specified by:
        drawRectangle in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawRoundRectangle

        public void drawRoundRectangle​(int x,
                                       int y,
                                       int width,
                                       int height,
                                       int circleWidth,
                                       int circleHeight)
        Specified by:
        drawRoundRectangle in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawText

        public void drawText​(String text,
                             int x,
                             int y)
        Specified by:
        drawText in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawText

        public void drawText​(String text,
                             int x,
                             int y,
                             boolean transparent)
        Specified by:
        drawText in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • fillPolygon

        public void fillPolygon​(int[] polygon)
        Specified by:
        fillPolygon in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • fillRectangle

        public void fillRectangle​(int x,
                                  int y,
                                  int width,
                                  int height)
        Specified by:
        fillRectangle in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • fillGradientRectangle

        public void fillGradientRectangle​(int x,
                                          int y,
                                          int width,
                                          int height,
                                          boolean vertical)
        Specified by:
        fillGradientRectangle in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • fillRoundRectangle

        public void fillRoundRectangle​(int x,
                                       int y,
                                       int width,
                                       int height,
                                       int circleWidth,
                                       int circleHeight)
        Specified by:
        fillRoundRectangle in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • getDeviceBounds

        public org.pentaho.di.core.gui.Point getDeviceBounds()
        Specified by:
        getDeviceBounds in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setAlpha

        public void setAlpha​(int alpha)
        Specified by:
        setAlpha in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • getAlpha

        public int getAlpha()
        Specified by:
        getAlpha in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setBackground

        public void setBackground​(org.pentaho.di.core.gui.PrimitiveGCInterface.EColor color)
        Specified by:
        setBackground in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setFont

        public void setFont​(org.pentaho.di.core.gui.PrimitiveGCInterface.EFont font)
        Specified by:
        setFont in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setForeground

        public void setForeground​(org.pentaho.di.core.gui.PrimitiveGCInterface.EColor color)
        Specified by:
        setForeground in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setLineStyle

        public void setLineStyle​(org.pentaho.di.core.gui.PrimitiveGCInterface.ELineStyle lineStyle)
        Specified by:
        setLineStyle in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setLineWidth

        public void setLineWidth​(int width)
        Specified by:
        setLineWidth in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setTransform

        public void setTransform​(float translationX,
                                 float translationY,
                                 int shadowsize,
                                 float magnification)
        Specified by:
        setTransform in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • textExtent

        public org.pentaho.di.core.gui.Point textExtent​(String text)
        Specified by:
        textExtent in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawStepIcon

        public void drawStepIcon​(int x,
                                 int y,
                                 org.pentaho.di.trans.step.StepMeta stepMeta,
                                 float magnification)
        Specified by:
        drawStepIcon in interface org.pentaho.di.core.gui.GCInterface
      • drawJobEntryIcon

        public void drawJobEntryIcon​(int x,
                                     int y,
                                     org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy,
                                     float magnification)
        Specified by:
        drawJobEntryIcon in interface org.pentaho.di.core.gui.GCInterface
      • drawJobEntryIcon

        public void drawJobEntryIcon​(int x,
                                     int y,
                                     org.pentaho.di.job.entry.JobEntryCopy jobEntryCopy)
        Specified by:
        drawJobEntryIcon in interface org.pentaho.di.core.gui.GCInterface
      • drawStepIcon

        public void drawStepIcon​(int x,
                                 int y,
                                 org.pentaho.di.trans.step.StepMeta stepMeta)
        Specified by:
        drawStepIcon in interface org.pentaho.di.core.gui.GCInterface
      • setAntialias

        public void setAntialias​(boolean antiAlias)
        Specified by:
        setAntialias in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setBackground

        public void setBackground​(int r,
                                  int g,
                                  int b)
        Specified by:
        setBackground in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setForeground

        public void setForeground​(int r,
                                  int g,
                                  int b)
        Specified by:
        setForeground in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • setFont

        public void setFont​(String fontName,
                            int fontSize,
                            boolean fontBold,
                            boolean fontItalic)
        Specified by:
        setFont in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • getImage

        public Object getImage()
        Specified by:
        getImage in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • switchForegroundBackgroundColors

        public void switchForegroundBackgroundColors()
        Specified by:
        switchForegroundBackgroundColors in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • getArea

        public org.pentaho.di.core.gui.Point getArea()
        Specified by:
        getArea in interface org.pentaho.di.core.gui.PrimitiveGCInterface
      • drawImage

        public void drawImage​(BufferedImage image,
                              int x,
                              int y)
        Specified by:
        drawImage in interface org.pentaho.di.core.gui.PrimitiveGCInterface