ItemizedOverlay class in Android
<p>I was going through an example using ItemizedOverlay. The draw method is being over-ridden as follows:</p>

<pre><code>public void draw(Canvas canvas, MapView mapView, boolean shadow) {
    shadow = false;
    super.draw(canvas, mapView, shadow);
}
</code></pre>

<p>In the example, a call is being made to populate(), which in turn calls size() and createItem(int i).</p>

<p>But my question is, who calls the above-mentioned draw method, and how is it called? In particular, how does the caller know which MapView object to pass as a parameter?</p>
