import java.awt.Color; import uwcse.graphics.GWindow; import uwcse.graphics.Oval; // import uwcse.graphics.*; // import the entire library /** * A class that displays a graphics window with a circle * * @author CSC 142 * */ public class WindowWithCircle { private GWindow window; private Oval circle; /** * Creates a window with a circle */ public WindowWithCircle() { window = new GWindow(); circle = new Oval(75, 40, 100, 200, Color.BLUE, true); window.add(circle); } /** * Moves the oval by a given displacement * * @param dx * displacement along x * @param dy * displacement along y */ public void moveOval(int dx, int dy) { circle.moveBy(dx, dy); } }