Package org.eclipse.swt.graphics

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


          gc.fillGradientRectangle(1, 0, imageSize.width-2,
              imageSize.height, true);

          gc.setAlpha(150);
          gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK));
          gc.drawLine(0, 0, 0, imageSize.height);
          gc.drawLine(imageSize.width-1, 0, imageSize.width-1, imageSize.height);
                  if (index == 0){
                    gc.drawLine(0, 0, imageSize.width-1, 0)
                  }else if (index == 2){
                    gc.drawLine(0, imageSize.height - 1, imageSize.width-1, imageSize.height - 1);
View Full Code Here


              imageSize.height, true);

          gc.setAlpha(150);
          gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK));
          gc.drawLine(0, 0, 0, imageSize.height);
          gc.drawLine(imageSize.width-1, 0, imageSize.width-1, imageSize.height);
                  if (index == 0){
                    gc.drawLine(0, 0, imageSize.width-1, 0)
                  }else if (index == 2){
                    gc.drawLine(0, imageSize.height - 1, imageSize.width-1, imageSize.height - 1);
                  }
View Full Code Here

          gc.setAlpha(150);
          gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK));
          gc.drawLine(0, 0, 0, imageSize.height);
          gc.drawLine(imageSize.width-1, 0, imageSize.width-1, imageSize.height);
                  if (index == 0){
                    gc.drawLine(0, 0, imageSize.width-1, 0)
                  }else if (index == 2){
                    gc.drawLine(0, imageSize.height - 1, imageSize.width-1, imageSize.height - 1);
                  }
                 
          c1.dispose();
View Full Code Here

          gc.drawLine(0, 0, 0, imageSize.height);
          gc.drawLine(imageSize.width-1, 0, imageSize.width-1, imageSize.height);
                  if (index == 0){
                    gc.drawLine(0, 0, imageSize.width-1, 0)
                  }else if (index == 2){
                    gc.drawLine(0, imageSize.height - 1, imageSize.width-1, imageSize.height - 1);
                  }
                 
          c1.dispose();
          c2.dispose();
View Full Code Here

        gc.setForeground(bg);
        gc.setBackground(gbg);
        gc.fillGradientRectangle(bounds.x, bounds.y, bounds.width, bounds.height, true);
        // background bottom separator
        gc.setForeground(factory.getColors().getColor(IFormColors.H_BOTTOM_KEYLINE1));
        gc.drawLine(bounds.x, bounds.height - 2, bounds.x + bounds.width - 1, bounds.height - 2);
        gc.setForeground(factory.getColors().getColor(IFormColors.H_BOTTOM_KEYLINE2));
        gc.drawLine(bounds.x, bounds.height - 1, bounds.x + bounds.width - 1, bounds.height - 1);
    }

    /**
 
View Full Code Here

        gc.fillGradientRectangle(bounds.x, bounds.y, bounds.width, bounds.height, true);
        // background bottom separator
        gc.setForeground(factory.getColors().getColor(IFormColors.H_BOTTOM_KEYLINE1));
        gc.drawLine(bounds.x, bounds.height - 2, bounds.x + bounds.width - 1, bounds.height - 2);
        gc.setForeground(factory.getColors().getColor(IFormColors.H_BOTTOM_KEYLINE2));
        gc.drawLine(bounds.x, bounds.height - 1, bounds.x + bounds.width - 1, bounds.height - 1);
    }

    /**
     * Set the text label.
     *
 
View Full Code Here

                gc.setLineStyle( SWT.LINE_SOLID );
               
                gc.setForeground( color( finalColor ) );
                gc.setAlpha(finalColor.getAlpha());
                gc.setLineWidth( finalWidth );
                gc.drawLine(1, 13, 6, 2);
                gc.drawLine(6, 2, 9, 13);
                gc.drawLine(9, 13, 14, 2);               
               
                ImageData clone = (ImageData) swtImage.getImageData().clone();
               
View Full Code Here

               
                gc.setForeground( color( finalColor ) );
                gc.setAlpha(finalColor.getAlpha());
                gc.setLineWidth( finalWidth );
                gc.drawLine(1, 13, 6, 2);
                gc.drawLine(6, 2, 9, 13);
                gc.drawLine(9, 13, 14, 2);               
               
                ImageData clone = (ImageData) swtImage.getImageData().clone();
               
                swtImage.dispose();
View Full Code Here

                gc.setForeground( color( finalColor ) );
                gc.setAlpha(finalColor.getAlpha());
                gc.setLineWidth( finalWidth );
                gc.drawLine(1, 13, 6, 2);
                gc.drawLine(6, 2, 9, 13);
                gc.drawLine(9, 13, 14, 2);               
               
                ImageData clone = (ImageData) swtImage.getImageData().clone();
               
                swtImage.dispose();
               
View Full Code Here

               
                for( int i=0; i<16;i++){
                  try {
                    swtColor = color( colors[i] );
                    gc.setForeground( swtColor );
                    gc.drawLine(i,0,i,15);
                  }
                  finally {
                    swtColor.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.