Package org.eclipse.swt.graphics

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


                page.paintMarginAreas(c, PAGE_PAINTING_CLEARANCE, Layer.PAGED_MODE_SCREEN);
                page.paintBorder(c, PAGE_PAINTING_CLEARANCE, Layer.PAGED_MODE_SCREEN);

                Color old = gc.getForeground();
                gc.setForeground(gc.getDevice().getSystemColor(SWT.COLOR_BLACK));
                gc.drawRectangle(overall.x, overall.y, overall.width, overall.height);
                gc.setForeground(old);

                java.awt.Rectangle content = page.getPagedViewClippingBounds(c,
                        PAGE_PAINTING_CLEARANCE);
                out.clip(content);
View Full Code Here


    display.asyncExec(new Runnable() {
      public void run() {
        GC gc = new GC(canvas);
        setupGC(gc);
        // gc.setForeground(new Color(display,new RGB(128,128,128)));
        gc.drawRectangle(startX, startY, endX - startX, endY - startY);
        gc.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.