Are you trying to store the model information in the view (Graphics)? When the 
user drags the Shape, you process the mouse event and store the current X / Y 
offsets somewhere. Don't store them as an AT on the Graphics - store it in the 
model, and use that information during the rendering.

As to your question about Graphics reset - you can debug the painting pipeline 
to see exactly when the Graphic object is created / changes its state, but i'd 
venture to say that it's not necessary in your case. Store the offsets in 
model, and use them during the painting.

Kirill
[Message sent by forum member 'kirillcool' (kirillcool)]

http://forums.java.net/jive/thread.jspa?messageID=227758

===========================================================================
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