Move a shape through a line

Dear all,

i post my question. I have to pick a shape (already done), move it (already done) through / along a line. Example: i have a small rectangle and it has to follow the line in a "S" shape.

What do you suggest me? is there any class that can help me? do I have to implement the whole logic on myself?

Thanks in advance

Giorgio

[363 byte] By [J_newBiea] at [2007-11-27 6:07:05]
# 1
Get a (Flattening)PathIterator for your s-shape using an initial flatness in the range of 0.1 - 0.01 and get the coords[0 and 1] for the SEG_MOVET0 and SEG_LINETO sections. Use these to position your moving shape/rectangle.
crwooda at 2007-7-12 16:23:48 > top of Java-index,Security,Cryptography...