No body has any idea? Or is the question too much stupid to be answered?

On 10/22/06, Danilo Costa <[EMAIL PROTECTED] > wrote:
I think it is a dummy question, but I cant find its answer easily.

I have a collection of Shapes that are rendered in a canvas and I have to let the user to interact with it, dragging it.
I've found this example http://java.sun.com/docs/books/tutorial/2d/display/user.html called Shape mover, but actually it works only with Rectangle class, which has convenient methods for that, such as setLocation and translate. I am wondering why Shape interface does not define those methods? How can I implement such methods when I am working with generic shapes? Any help is appreciate.

Tahanks
Danilo
--
"...YOU CANNOT KNOW THE MEANING OF YOUR LIFE UNTIL YOU ARE CONNECTED WITH THE POWER THAT CREATED YOU..."
Shri Mataji Nirmala Devi



--
"...YOU CANNOT KNOW THE MEANING OF YOUR LIFE UNTIL YOU ARE CONNECTED WITH THE POWER THAT CREATED YOU..."
Shri Mataji Nirmala Devi =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to