/** * This class represents a single target (a collection of * evenly-spaced concentric circles). * * Modification history: * 1/16/03 (JO) Wrote the interface, with stubs. * * @author Jeff Ondich */ import javabook.*; import java.awt.*; class Target { // The number of concentric circles in the target. private int nRings; // The radius and center of the outermost circle. private int radius; private int centerX; private int centerY; // The color of the circles. private Color color; /** * Initializes the target's instance variables with default values. */ public Target() { nRings = 5; radius = 100; centerX = 150; centerY = 150; color = Color.black; } /** * Initializes the target's instance variables with the given values. */ public Target( int x, int y, int n, int r, Color c ) { // Stub. } /** * Sets the target's center to the given values. */ public void setCenter( int x, int y ) { // Stub. } /** * Sets the target's radius to the given value. */ public void setRadius( int r ) { // Stub. } /** * Sets the number of rings in the target to the given value. */ public void setNRings( int n ) { // Stub. } /** * Sets the target's color to the given value. */ public void setColor( Color c ) { // Stub. } /** * Draws the target on the given drawing board. */ public void draw( DrawingBoard board ) { // Stub. } }