Rectangle bounded = getBounds();  for(int i = bounded.y;i<bounded.y+bounded.height;i++) { for(int j = bounded.x;j<bounded.x+bounded.width;j++) { if(selection.contains(j,i)) { setTileAt(j,i,null); }else{ setTileAt(j,i,selTile); } } }  }
Rectangle bounded = getBounds(); selection.exclusiveOr(new Area(bounded));  for (int i = bounded.y; i < bounded.y + bounded.height; i++) { for (int j = bounded.x; j < bounded.x + bounded.width; j++) { if (selection.contains(j, i)) { setTileAt(j, i, selTile); } else { setTileAt(j, i, null); } } } }
	public void invert() {				Rectangle bounded = getBounds();				for(int i = bounded.y;i<bounded.y+bounded.height;i++) {			for(int j = bounded.x;j<bounded.x+bounded.width;j++) {				if(selection.contains(j,i)) {					setTileAt(j,i,null);				}else{					setTileAt(j,i,selTile);				}			}		}			}