I am trying to create a path editor (like the pen tool in Photoshop).
Anyway I have been storing the coordinates of the QuadCurves in Vectors and
then creating the curves to display them. This seems to be working fine.
However I have discovered the GeneralPath class and am wondering if this is
what I should be using. It gives me all the functionality I need except for
one, there seems to be no way to change any of the coordinates. Once I have
added a curve to the GeneralPath I can not seem to modify it if a user
moves a control point of a curve for example. Is there a way to do this?
Is the GeneralPath class only for display and not for general storage and
manipulation of curves?
I suppose one way I could do it is to read in the GeneralPath segment by
segment, modify the data and then create a new GeneralPath. But it seems a
bit of a waste when all I want to do is to change two numbers (the user can
drag a curve and watch it change so doing it this way might slow it down).
I am quite new to Java2D so I may be missing something simple. I dont mind
using my own storage mechanism but it just seems like that is what
GeneralPath is for. It also supports multiple subpaths etc which I will
need to have.
Any ideas appreciated.
Cheers Dave
===========================================================================
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".