Hi

>
>Hi Bader,
>
>bader houmad wrote:
>
>>In my application, I try to move a shape, while moving it I create
>>a ghost with swing that shows the deplacement, but i have a problem
>>(the drawing  scintillates, and disapears).what should i do?
>
>    Which drawing scintillates and disappears, the Ghost or the
>JSVGCanvas drawing?  Can you describe what you mean by
>'scintillates' in more detail?

>

The drawing that scintillates is the ghost, and not the JSVGCanvas.

scintillates: flickering,(some parts of the drawing disapear and reappear while moving the shape) i think it's due to the call of repaint method each time the shape is moved.

>    How are you generating the ghost?
>    How are you drawing the ghost?

>

g = myCanvas.getGraphics();

g.draw(shape);

g.fill(bounds);

g.setColor(Color.BLUE);

.....

>    Have you considered doing the whole thing in SVG (clone the
>moving subtree and set group opacity)?  This will be slower but
>would likely avoid your issues.

>

I tried this, but I have some problems when removing the cloned nodes in case of use of groups(<g>..</g>).

Can you give an example?

>>can somebody help me?
>
>    It sounds to me like you are trying to do something that
>is pretty tricky.  You need to provide a lot more info before
>anyone can spot where you might have gone wrong...

>

Actually, I'm trying to do an application like Sketsa(if you know it), for drawing with SVG . this way we can draw manually, or view the source code of the drawing, change it or create new drawings ...

NB. excuse my very bad english!!


MSN Messenger : vid�oconf�rence gratuite --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to