Examples of fillRoundRectangle()


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

     
      doubleGC.setBackground(gray);
      doubleGC.fillRoundRectangle(0, borderSize/2, bounds.width+borderSize*2, bounds.height+borderSize*2, borderSize/2, borderSize/2);
     
      doubleGC.setBackground(borderColor);
      doubleGC.fillRoundRectangle(borderSize/2, 0, bounds.width+borderSize*2, bounds.height+borderSize*2, borderSize/2, borderSize/2);
     
      doubleGC.drawImage(scaledImage, borderSize + borderSize / 2, borderSize);
     
      doubleGC.dispose();
      gc.drawImage(doubleBuffer, 0, 0);
View Full Code Here

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

          Color newForeground;
          Color newBackground;
         
          newBackground = UI.newColor(eachItemInPaintOrder.getRenderBackground());
          gc.setBackground(newBackground);
          gc.fillRoundRectangle(bounds.x, bounds.y, bounds.width, bounds.height, ITEM_ARC, ITEM_ARC);
          gc.setBackground(oldBackground);
          newBackground.dispose();
         
          if (eachItemInPaintOrder.hasImage()) {
            Rectangle imageBounds = computeImageBounds(eachItemInPaintOrder, bounds);
View Full Code Here

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

    GC gc = e.gc;
    Rectangle carea = getClientArea();
    gc.setBackground(getHoverBackground());
    int savedAntialias = gc.getAntialias();
    FormUtil.setAntialias(gc, SWT.ON);
    gc.fillRoundRectangle(carea.x + HMARGIN, carea.y + 2, carea.width
        - HMARGIN * 2, carea.height - 4, ARC_WIDTH, ARC_HEIGHT);
    FormUtil.setAntialias(gc, savedAntialias);
  }

  private Color getHoverBackground() {
View Full Code Here

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

      chartColour = new Color(gc.getDevice(), r, g, b);
    }
   
    gc.setForeground(chartColour);
    gc.setBackground(chartColour);
    gc.fillRoundRectangle(x, y, width, height, arcWidth, arcHeight);

    gc.setForeground(foreground);
    gc.setBackground(background);
    gc.drawText(text, x + textWidthOffset, y + textHeightOffset, true);
   
View Full Code Here

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

        chartColour = bar.getColour().create(gc);
      }

      gc.setForeground(chartColour);
      gc.setBackground(chartColour);
      gc.fillRoundRectangle(x, y, width, height, arcWidth, arcHeight);

      String text = bar.getText();
      if (text != null) {
        gc.setForeground(foreground);
        gc.setBackground(background);
View Full Code Here

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

    GC gc = e.gc;
    Rectangle carea = getClientArea();
    gc.setBackground(getHoverBackground());
    int savedAntialias = gc.getAntialias();
    FormUtil.setAntialias(gc, SWT.ON);
    gc.fillRoundRectangle(carea.x + HMARGIN, carea.y + 2, carea.width
        - HMARGIN * 2, carea.height - 4, ARC_WIDTH, ARC_HEIGHT);
    FormUtil.setAntialias(gc, savedAntialias);
  }

  private Color getHoverBackground() {
View Full Code Here

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

        }

        if (roundRectangleBackground != null) {
          Color oldBackground = gc.getBackground();
          gc.setBackground(roundRectangleBackground);
          gc.fillRoundRectangle(rect.x, rect.y, rect.width, rect.height, 10, 50);
          if (oldBackground != null)
            gc.setBackground(oldBackground);
        }
      }
    } catch (SWTException e) {
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.