import java.awt.Color; import java.awt.Dimension; public class Blur extends Command { private static SizeInputDialog ourDialog = new SizeInputDialog("Choose Neighborhood Size", " width", " height"); public Blur () { super("Blur"); } public void execute (Pixmap target) { ourDialog.show(); Dimension neighborhood = ourDialog.getSize(); Dimension bounds = target.getSize(); // TODO: blur target pixmap by averaging each color // with its neighbors } }