Well, you could give each Object a contains() method as well.
Path2D (Java Platform SE 6)
Type: Posts; User: KevinWorkman
Well, you could give each Object a contains() method as well.
Path2D (Java Platform SE 6)
Instead of having each Object return a Shape that is then drawn, why not give each Object a draw(Graphics2D g) method, then let each of them draw itself? Then in your paintComponent(Graphics g)...