function highLight(evt) {
var myShape = evt.target;
myShape.setAttributeNS(null,"stroke","red");
myShape.setAttributeNS(null,"cursor","move");
}
would highlight an element by setting it's stroke to red. This could be
set on mouseover, Than you'd have to set it back onmouseout.
This is javascript syntax but it shouldn't be much different in Java.
the method names are the same.
Andreas
Peppe wrote:
Hi, when i click on a shape, in my jsvgcanvas, i would that a outlined
perimeter around the shape is visualized and cursor is set to "move"....how
can i do this?
--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093 Zurich, Switzerland
Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: [EMAIL PROTECTED]
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]