Package org.eclipse.swt.graphics

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


                int[] points = { 1,14, 3,9, 4,66,49,3, 14,1, 14,14 };

                gc.setAlpha(f.getAlpha());
                gc.fillPolygon(points);
                gc.setAlpha(c.getAlpha());
                gc.drawPolygon(points);
               
                ImageData clone = (ImageData) swtImage.getImageData().clone();
                swtImage.dispose();
                return clone;
                } finally {
View Full Code Here


      gc.setBackground(SwtConsts.COLOR_CYAN);
      int fullM1 = size - 1;
      int halfP1 = size - size / 2 + 1;
      int[] pointArray = new int[] { fullM1, fullM1, halfP1, fullM1, fullM1, halfP1 };
      gc.fillPolygon(pointArray);
      gc.drawPolygon(pointArray);
    }

    // Show if this person has images.
    if (person.getImageList().size() > 0) {
      gc.setForeground(SwtConsts.COLOR_DARK_CYAN);
View Full Code Here

      gc.setForeground(SwtConsts.COLOR_DARK_CYAN);
      gc.setBackground(getParent().getDisplay().getSystemColor(SWT.COLOR_CYAN));
      int halfP1 = size / 2 - 1;
      int[] pointArray = new int[] { 0, 0, halfP1, 0, 0, halfP1 };
      gc.fillPolygon(pointArray);
      gc.drawPolygon(pointArray);
    }
  }
}
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.