Example #1
0
  private static final Shape createMask(int width, int height) {
    Shape outside = new Rectangle2D.Double(0, 0, width, height);
    Shape inside = new RoundRectangle2D.Double(10, 10, width - 20, height - 20, 50, 50);

    Area area = new Area(outside);
    area.subtract(new Area(inside));

    return area;
  }
Example #2
0
 public Area parentarea(Widget in) {
   return (Area.sized(parentpos(in), sz));
 }
Example #3
0
 public Area area() {
   return (Area.sized(c, sz));
 }