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; }
public Area parentarea(Widget in) { return (Area.sized(parentpos(in), sz)); }
public Area area() { return (Area.sized(c, sz)); }