Package org.eclipse.swt.graphics

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


          Color color = e.display.getSystemColor(CanvasTab.colors[paintCount % CanvasTab.colors.length]);
          gc.setBackground(color);
          gc.fillRectangle(e.x, e.y, e.width, e.height);
        }
        Point size = canvas.getSize();
        gc.drawArc(cx + 1, cy + 1, size.x - 2, size.y - 2, 0, 360);
        gc.drawRectangle(cx + (size.x - 10) / 2, cy + (size.y - 10) / 2, 10, 10);
        Point extent = gc.textExtent(CanvasTab.canvasString);
        gc.drawString(CanvasTab.canvasString, cx + (size.x - extent.x) / 2, cy - extent.y + (size.y - 10) / 2,
            true);
      }
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.