title: How do I read Java source code for Graphics2d.draw?
body: <p>I'm trying to copy Java's own method of drawing arcs with points to do it in a matrix of numbers (1s being drawns pixels, 0s being empty pixels) instead of pixels. So I searched for Graphics2D.draw method source code and I doesn't call any other method. Where is the source code?</p>
  
  <pre><code>public abstract void draw(Shape s);
  
  /**
   * Renders an image, applying a transform from image space into user space
   * before drawing.
   * The transformation from user space into device space is done with
   * the current &lt;code&gt;Transform&lt;/code&gt; in the &lt;code&gt;Graphics2D&lt;/code&gt;.
   * The specified transformation is applied to the image before the
   * transform attribute in the &lt;code&gt;Graphics2D&lt;/code&gt; context is applied.
   * The rendering attributes applied include the &lt;code&gt;Clip&lt;/code&gt;,
   * &lt;code&gt;Transform&lt;/code&gt;, and &lt;code&gt;Composite&lt;/code&gt; attributes.
   * Note that no rendering is done if the specified transform is
   * noninvertible.
   * @param img the specified image to be rendered.
   *            This method does nothing if &lt;code&gt;img&lt;/code&gt; is null.
   * @param xform the transformation from image space into user space
   * @param obs the {@link ImageObserver}
   * to be notified as more of the &lt;code&gt;Image&lt;/code&gt;
   * is converted
   * @return &lt;code&gt;true&lt;/code&gt; if the &lt;code&gt;Image&lt;/code&gt; is
   * fully loaded and completely rendered, or if it's null;
   * &lt;code&gt;false&lt;/code&gt; if the &lt;code&gt;Image&lt;/code&gt; is still being loaded.
   * @see #transform
   * @see #setTransform
   * @see #setComposite
   * @see #clip
   * @see #setClip
   */
  </code></pre>