Hi Karan, I would suggest you to define a user coordinate system for your geometric figure. you can easily pretend like you are drawing your figure at (0,0) coordinates of your user-defined coordinate system..
Then, while drawing the figure on any device, you can use Graphics2D.translate(double x, double y) method to translate the user-coordinates into device-coordinates, and can easily render the figure at any point your want. I hope this can give an idea to you. _Koray --- karan kapoor <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a four sided geometry(i.e a > rectangle). > The four vertices should be able to be dragged (on > mouse events)and the lines connecting to them should > be redrawn everytime. Is there a way to do this. > Please suggest. > > regards, > Karan Kapoor > > __________________________________________________ > Do You Yahoo!? > Find a job, post your resume. > http://careers.yahoo.com > > =========================================================================== > 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". __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com =========================================================================== 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".
