> I have a small Question: I want to change the mouse-cursor, when the > user chose a tool to draw shapes/lines in the JSVGCanvas. I use > > myCanvas.setCursor(canvasCursor); > > In canvasCursor I store e.g a awt.Cursor.CROSSHAIR_CURSOR > > I use setCursor also in the mouseEntered method of my canvas-mouse > listener. And everything works fine unless I move the cursor over a > drawn shape. Then the cursor switch back to the default-cursor. > > How I can stop this behaviour You're setting the canvas' cursor, while the SVG's is kept untouched - cursor's property [1] default value is "auto". You may try setting 'cursor="crosshair"' in top level "svg" element to avoid the behavior experienced.
> What I don't understand. My document has as lowest layer a <g> with and > <image> inside. The image has the same size like the svg-document. So > the mouse is every-time over this image, when its over the canvas. but > in this case, the cursor doesn't change back. Weird... Maybe someone with more knowledge on Batik can comment this. Hope this helps, Helder Magalhães [1] http://www.w3.org/TR/SVG/interact.html#CursorProperty --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
