draw a CenteredGraph is square and its origin is in its center
<p>I'm trying to draw a circle within a square with center at the origin but I can only draw half of it don't know whats wrong with it tried for 3 days no luck help please here is my program</p>

<pre><code>public class CenteredGraph extends JRaster {

  private int xSize, yBias;
  public CenteredGraph(int xSize, int yMax) {
    super(xSize, yMax*2+1);

    this.xSize = xSize;
     yBias = yMax;
    clear();
  }
  public CenteredGraph() {
    this(200,200);
  }
  public void set( double x, double y,int color) {

    super.set(x,y+yBias,color);
  }//this draws the circle

  public void set(double x, double y) {
    set(x,y, JRaster.white);

  }//this draws the x axis

  private void drawAxis() {
    for (int x = 0; x &lt; xSize; x ++)
      set(x,0, JRaster.darkYellow);
  }//this draws the y axis


  private void drawYAxis() {
    for (int y =-200 ; y &lt; xSize; y ++)
      set(0,y, JRaster.darkYellow);
  }
  //this draws scales x 

  private void drawScale() {
    for (int y = 10; y &lt; yBias; y += 10) {
      for (int x = 0; x &lt; xSize; x ++) {
        set(x,y, JRaster.veryDarkYellow);
        set(x,-y, JRaster.veryDarkYellow);
      }
    }
  }//this draws y scales

  private void drawYScale() {
    for (int x = 10; x &lt; xSize; x += 10) {
      for (int y = 0; y &lt; yBias; y ++) {
        set(x,y, JRaster.veryDarkYellow);
        set(x,-y, JRaster.veryDarkYellow);
      }
    }
  }


  public void clear() {
    super.clear();
    drawYScale();
    drawYAxis();
    drawAxis();

    drawScale();
  }
}
</code></pre>

<p>/* and here is the code for the circle i am trying to draw */</p>

<pre><code>import java.lang.Math;
public class Lab6{
  public static void main(String[] args) {
    CenteredGraph pic = new CenteredGraph(100,100);
    for (int angle = 0; angle &lt; 360; angle ++)
      pic.set(100*Math.cos(degreesToRadians(angle)),
              100*Math.sin(degreesToRadians(angle)));
  }
  public static double degreesToRadians(double angleInDegrees) {
    return angleInDegrees * Math.PI / 180.0;
  }
</code></pre>

<p>}
/<em>help please</em>/<strong><em><code>strong text</code></em></strong></p>
