Giacomo,
This is from an earlier post.
"Yes, it can be done. To see how, look at pages 323-328 of Java 2D API
Graphics by Vincent Hardy. If
you don't have access to that, download the glf graphics framework from
Sun and look at
ShapeStroke, WaveStroke, or TextStroke java files in the
com.sun.glf.goodies package and see how he implements the Stroke
interface."
Good luck.
Mike Robinson
Giacomo Fiorentini wrote:
>
>
> Hi,
> my problem is to extends the set of Classes implementing Shape
>
> interface, so I can use a Point with "Text shape". Anyone have tried
> to do something like this ?
>
> class MyTextShape implements Shape {
> //
> // how can be implemented ?
> // is there any useful example for implementing new Shape
> classes ?
> //
> }
>
> Thank you.
>
> Any suggestions are welcome.
>
>
>
> Giacomo Fiorentini
>
> /---------------------------------------------------
> [EMAIL PROTECTED] -\
> Dott. Giacomo FIORENTINI +39-721-414634
> (office)
> Esalab - GIS & Consulting Via A. Costa 65 +39-721-415041
> (fax)
> R&D Software Area 61100 PESARO (Italy) 0339 3573124
> (mobile)
>
> ----------------------------------------------------------------------------/
>
> --
> This message is confidential and solely for the intended
> addressee(s). If
> you are not the intended recipient of this message, please notify the
>
> sender immediately and delete it from your system. Unauthorised
> reproduction, disclosure, modification and/or distribution of this
> e-mail
> is strictly prohibited. The contents of this e-mail do not constitute
> a
> commitment by Esalab snc,
> except where expressly provided for in a written agreement between
> you and
> Esalab snc .
>
>
--
******************************************
Mike Robinson, Computer Science Department
Maharishi University of Management
Fairfield, IA 52557 USA
Voice: 1-641-472-7000 ext. 4300
Email: [EMAIL PROTECTED]
===========================================================================
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".