Examples of fillGradientRectangle()


Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

          GC gc = new GC(newImage);

          // fill background
          gc.setForeground(_bgFgGradient);
          gc.setBackground(_bgBgGradient);
          gc.fillGradientRectangle(rect.x, rect.y, rect.width, rect.height, true);

          // draw shell edge
          gc.setLineWidth(2);
          gc.setForeground(_borderColor);
          gc.drawRectangle(rect.x + 1, rect.y + 1, rect.width - 2, rect.height - 2);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

              GC gc = new GC(newImage);

              // fill background
              gc.setForeground(topGradient);
              gc.setBackground(btmGradient);
              gc.fillGradientRectangle(rect.x, rect.y,
                  rect.width, rect.height, true);

              // draw shell edge
              gc.setLineWidth(2);
              gc.setForeground(borderColor);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

          GC gc = new GC(newImage);

          // fill background
          gc.setForeground(_bgFgGradient);
          gc.setBackground(_bgBgGradient);
          gc.fillGradientRectangle(rect.x, rect.y, rect.width, rect.height, true);

          // draw shell edge
          gc.setLineWidth(2);
          gc.setForeground(_borderColor);
          gc.drawRectangle(rect.x + 1, rect.y + 1, rect.width - 2, rect.height - 2);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

          GC gc = new GC(newImage);

          // fill background
          gc.setForeground(_bgFgGradient);
          gc.setBackground(_bgBgGradient);
          gc.fillGradientRectangle(rect.x, rect.y, rect.width, rect.height, true);

          // draw shell edge
          gc.setLineWidth(2);
          gc.setForeground(_borderColor);
          gc.drawRectangle(rect.x + 1, rect.y + 1, rect.width - 2, rect.height - 2);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

      gc.setForeground(lastColor);
      lastColor = gradientColors[i + 1];
      if (lastColor == null) lastColor = oldBackground;
      gc.setBackground(lastColor);
      final int gradientHeight = (gradientPercents[i] * rect.height / 100) - pos;
      gc.fillGradientRectangle(3, pos+3, rect.width-10, gradientHeight-6, true);
      pos += gradientHeight;     
    }
   
    gc.setForeground(new Color(getDisplay(), 245, 245, 245));  
   
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

      gc.setForeground(lastColor);
      lastColor = gradientColors[i + 1];
      if (lastColor == null) lastColor = oldBackground;
      gc.setBackground(lastColor);
      final int gradientHeight = (gradientPercents[i] * rect.height / 100) - pos;
      gc.fillGradientRectangle(2, pos+2, rect.width-9, gradientHeight-36, true);
      pos += gradientHeight;     
    }

    gc.setForeground(new Color(getDisplay(), 245, 245, 245))
    gc.drawRectangle(0, 0, rect.width - 6, rect.height - 33);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

        GC gc = new GC(footer);
        gc.setForeground(Display.getCurrent().getSystemColor(
            SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
        gc.setBackground(Display.getCurrent().getSystemColor(
            SWT.COLOR_WIDGET_BACKGROUND));
        gc.fillGradientRectangle(0, 0, footer.getClientArea().width,
            footer.getClientArea().height, true);
        gc.setForeground(Display.getCurrent().getSystemColor(
            SWT.COLOR_WIDGET_NORMAL_SHADOW));
        gc.setLineWidth(1);
        gc.drawLine(0, 1, footer.getClientArea().width, 1);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

        GC gc = e.gc;
        gc.setForeground(Display.getCurrent().getSystemColor(
            SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
        gc.setBackground(Display.getCurrent().getSystemColor(
            SWT.COLOR_WIDGET_BACKGROUND));
        gc.fillGradientRectangle(0, 0, title.getClientArea().width,
            title.getClientArea().height - 2, true);
        gc.setForeground(Display.getCurrent().getSystemColor(
            SWT.COLOR_WIDGET_NORMAL_SHADOW));
        gc.setLineWidth(1);
        gc.drawLine(0, title.getClientArea().height - 2, title
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

        footer.addListener(SWT.Paint, new Listener() {
            public void handleEvent(Event arg0) {
                GC gc = new GC(footer);
                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
                gc.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
                gc.fillGradientRectangle(0, -9, footer.getClientArea().width, footer.getClientArea().height, true);
                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW));
                gc.setLineWidth(1);
                gc.drawLine(0, 1, footer.getClientArea().width, 1);
                gc.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
                gc.drawLine(0, 2, footer.getClientArea().width, 2);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillGradientRectangle()

        gc.setLineWidth(2);

        Color colorBg2 = new Color(null, 65, 80, 140);
        gc.setBackground(colorBg2);
        gc.setForeground(colorFg1);
        gc.fillGradientRectangle(0, 0, componentsAreaComposite
            .getBounds().width,
            componentsAreaComposite.getBounds().height, true);

        Color colorFg2 = new Color(null, 38, 52, 97);
        gc.setForeground(colorFg2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.