Examples of drawRoundRectangle()


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

        int x = (int) (entityX + (entityWidth / 2.0)) - (textSize.x / 2);
        gcBuffer.setForeground(BLACK);
        gcBuffer.drawString(name, x, entityY);
        gcBuffer.setForeground((Color) entity.getBorderColor());
        gcBuffer.setLineWidth(entity.getBorderWidth());
        gcBuffer.drawRoundRectangle(entityX, entityY, entityWidth, entityHeight, 8, 8);
      }

      e.gc.drawImage(imageBuffer, 0, 0);
      imageBuffer.dispose();
      gcBuffer.dispose();
View Full Code Here

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

                        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 );
                    }
                    ImageData clone = (ImageData) swtImage.getImageData().clone();               
                    swtImage.dispose();
                   
                    return clone;
View Full Code Here

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

                  swtColor.dispose();
                }
                try {
                  swtColor = color( contrast );
                  gc.setForeground( swtColor );
                  gc.drawRoundRectangle( 0, 0, 14, 14, 2, 2 );                
                } finally {
                  swtColor.dispose();
                }
                ImageData clone = (ImageData) swtImage.getImageData().clone();               
                swtImage.dispose();
View Full Code Here

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

                  }
                }
                try {
                  swtColor = color( Color.GRAY );
                  gc.setForeground( swtColor );                 
                  gc.drawRoundRectangle( 0, 0, 14, 14, 2, 2 );
                }
                finally {
                  swtColor.dispose();
                }
                               
View Full Code Here

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

      pos += gradientHeight;     
    }
   
    gc.setForeground(new Color(getDisplay(), 245, 245, 245));  
   
    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);
View Full Code Here

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

    }
   
    gc.setForeground(new Color(getDisplay(), 245, 245, 245));  
   
    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);
    }     
View Full Code Here

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

    gc.drawPolyline(polyline1);
    gc.drawPolyline(polyline2);
   
    if(areaMenu){
      gc.setForeground(lastColor);
      gc.drawRoundRectangle(rect.width - 35, 4, 25, rect.height - 9, 6, 6);
    }
  } 
 
  public void setBackground(Color[] colors, int[] percents) {
    checkWidget();
View Full Code Here

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

    Rectangle rect = getClientArea();  
    if (rect.width == 0 || rect.height == 0) return;
    GC gc = event.gc;
    gc.setForeground(new Color(getDisplay(), 250, 250, 250));  
   
    gc.drawRoundRectangle(0, 0, rect.width-6, rect.height-2 , 10, 10);
    gc.drawRoundRectangle(1, 1, rect.width-8, rect.height -4 , 10, 10);
  }

}
View Full Code Here

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

    if (rect.width == 0 || rect.height == 0) return;
    GC gc = event.gc;
    gc.setForeground(new Color(getDisplay(), 250, 250, 250));  
   
    gc.drawRoundRectangle(0, 0, rect.width-6, rect.height-2 , 10, 10);
    gc.drawRoundRectangle(1, 1, rect.width-8, rect.height -4 , 10, 10);
  }

}
View Full Code Here

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

        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);

        colorBg1.dispose();
        colorBg2.dispose();
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.