next up previous contents index
Next: TextArea Up: Appendix I: Base Previous: Square

Star

class Star extends Rectangle {
      int n; // number of stars
      int centerX,centerY; // xy-coordinates of the center
      int X0,Y0; // xy-coordinate of one of the angles
      int angle0; // the angle of one of the angles
      int smallDiameter; // diameter of the inner circle 
      int largeDiameter; // diameter of the outer circle
      boolean fill; // fill or not
}



Neng-Fa ZHOU
Sat Apr 18 16:14:29 JST 1998