Examples of fillRoundRectangle()


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

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

      gc.setAlpha(alpha);
      gc.setAntialias(SWT.ON);
    }
    gc.setBackground(customBackground);
    gc.fillRectangle(x, y, 2, height);
    gc.fillRoundRectangle(x, y, width, height, 4, 4);

    gc.setAlpha(oldAlpha);
    gc.setAntialias(oldAnti);

    gc.setForeground(systemForeground);
View Full Code Here

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

        //TODO: What about resize from the layout algorithm
        int entityWidth = Math.max((int) entity.getWidth(), textSize.x + 8);
        int entityHeight = Math.max((int) entity.getHeight(), textSize.y + 2);

        gcBuffer.setBackground((Color) entity.getColor());
        gcBuffer.fillRoundRectangle(entityX, entityY, entityWidth, entityHeight, 8, 8);

        // position the text in the middle of the node
        int x = (int) (entityX + (entityWidth / 2.0)) - (textSize.x / 2);
        gcBuffer.setForeground(BLACK);
        gcBuffer.drawString(name, x, entityY);
View Full Code Here

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

                        f = Color.LIGHT_GRAY;
                    }
                    if( f != null ){
                        gc.setBackground( color( f ) );
                        gc.setAlpha(f.getAlpha());
                        gc.fillRoundRectangle( 2,1, 13, 13, 2, 2 );
                    }
                    if( c != null ){
                        gc.setForeground( color( c ) );
                        gc.setAlpha(c.getAlpha());
                        gc.drawRoundRectangle( 2,1, 13, 13, 2, 2 );
View Full Code Here

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

                GC gc = new GC(swtImage);
                gc.setAntialias(SWT.ON);
                org.eclipse.swt.graphics.Color swtColor = color( color );
                try{
                  gc.setBackground( swtColor );
                  gc.fillRoundRectangle( 0, 0, 14, 14, 2, 2);
                }
                finally {
                  swtColor.dispose();
                }
                try {
View Full Code Here

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

        GC gc = new GC(image);
        PiePlot plot = (PiePlot) ch.getPlot();
        String key = getChartName(hotSpotsByModule[a]) + " "
            + StringUtils.getPercentNumberString(value);
        gc.setBackground(plot.lookupSectionPaint(key, true));
        gc.fillRoundRectangle(0, 0, 16, 16, 2, 2);
        gc.dispose();
        final int b = a;
        createImageHyperlink.setImage(image);
        createImageHyperlink.addDisposeListener(new DisposeListener() {
View Full Code Here

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

    gc.drawRoundRectangle(0, 0, rect.width-6, rect.height-2 , 10, 10);
    gc.drawRoundRectangle(1, 1, rect.width-8, rect.height -4 , 10, 10);
   
    if (pos < rect.height) {
      gc.setBackground(getBackground());
      gc.fillRoundRectangle(0, pos, rect.width, rect.height - pos, 3, 4);
    }     
   
    gc.setBackground(oldBackground);
   
    // draw the text
View Full Code Here

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

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

    if (pos < rect.height) {
      gc.setBackground(getBackground());
      gc.fillRoundRectangle(0, pos, rect.width, rect.height - pos, 3, 4);
    }    
    Image img = image;
    if(img != null){
      Rectangle imageRect = img.getBounds();
      if(type == 0){
View Full Code Here

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

                SWT.DRAW_TRANSPARENT);

        gc.setForeground(colorBg2);
        Color colorBg3 = new Color(null, 255, 255, 255);
        gc.setBackground(colorBg3);
        gc.fillRoundRectangle(3, 35, componentsAreaComposite
            .getBounds().width + 50, componentsAreaComposite
            .getBounds().height + 50, 40, 40);
        gc.drawRoundRectangle(3, 35, componentsAreaComposite
            .getBounds().width + 50, componentsAreaComposite
            .getBounds().height + 50, 40, 40);
View Full Code Here

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

      doubleGC.fillRectangle(0, 0, borderSize/2, clientRect.height);
      doubleGC.fillRectangle(fullWidth, 0, clientRect.width - fullWidth, clientRect.height);
      doubleGC.fillRectangle(0, fullHeight, clientRect.width, clientRect.height - fullHeight);
     
      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);
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.