Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Region.intersect()


  void drawBackground(GC gc, int[] shape, int x, int y, int width, int height, Color defaultBackground, Image image, Color[] colors, int[] percents, boolean vertical) {
    Region clipping = new Region();
    gc.getClipping(clipping);
    Region region = new Region();
    region.add(shape);
    region.intersect(clipping);
    gc.setClipping(region);
   
    if (image != null) {
      // draw the background image in shape
      gc.setBackground(defaultBackground);
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.