create your own implementation of Shape; its not that hard.
> -----Original Message-----
> From: Discussion list for Java 2D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Murad, Yawar (MED)
> Sent: Friday, December 10, 1999 6:34 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA2D] How to alter curves in a GeneralPath?
>
>
> Dave,
>
> You're pretty much out of luck. I ran into a similar problem
> - I wanted
> the user to be able to create an editable region-of-interest on an
> image, and while GeneralPath works great in supporting line and curve
> segments, there is no way to modify these segments.
>
> Sun indicates that this will likely not change (see
> http://developer.java.sun.com/developer/bugParade/bugs/4190814.html),
> but there is a possibility of a new object appearing some time in the
> future. For now, you're stuck creating new GeneralPath
> objects whenever
> you need to modify a segment!
>
> Hope this helps...
> -Yawar
>
> -----Original Message-----
> From: Dave Searle [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 09, 1999 5:12 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA2D] How to alter curves in a GeneralPath?
>
>
> 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".
>
> ==============================================================
> =============
> 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".
>
===========================================================================
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".