draw is called inside GraphicShape.addToParent().
Overriding draw is what you did in Ellipse, and I think that makes more sense.
On Jul 21, 2016, at 6:34 PM, Peter Ent wrote:
> The addedToParent() function is called when a Circle is put onto the
> display list; draw wouldn't be called then.
>
The addedToParent() function is called when a Circle is put onto the
display list; draw wouldn't be called then.
‹peter
On 7/21/16, 5:40 AM, "Harbs" wrote:
>Is there a reason addedToParent() is overridden instead of draw()?
>
>Harbs