From: Daniel A. <dan...@li...> - 2007-10-10 09:30:43
|
Hello, Wonderful, I have modified ZgrAppletEvtHdlr code in method click 1(),and it works. Thanks for all -------------------------------------------------------------------- Amodeo Daniel Universit=C3=A0 degli Studi di Catania Facolt=C3=A0 di Informatica Scienze Matematiche Fisiche e Naturali Emmanuel Pietriga-4 wrote: >=20 > If you want to catch the glyph under the cursor when the user clicks =20 > with the left mouse button: >=20 > In the ViewEventHandler implementation, in callback method click1(), =20 > call v.getGlyphsUnderMouseList() this will return the list of all =20 > glyphs currently under the cursor. You can also call =20 > v.lastGlyphEntered() >=20 > Emmanuel >=20 >=20 > On 8 oct. 07, at 11:47, Daniel Amodeo wrote: >=20 >> >> I was debugging the application and I've seen too this Metadata =20 >> informations >> in Glypth.getOwner. Even if it's not the best option it's fine to =20 >> me. Can >> you please now give me a brief detail of which even i have to =20 >> capture (where >> and how maybe too) for catch the Glyph under the mouse when I click =20 >> in the >> main window (like when I click for zoom an ellipse or for highlight =20 >> it). >> >> Thank you >> >> -------------------------------------------------------------------- >> Amodeo Daniel >> Universit=C3=A0 degli Studi di Catania >> Facolt=C3=A0 di Informatica >> Scienze Matematiche Fisiche e Naturali >> >> >> Emmanuel Pietriga-2 wrote: >>> >>> You should be able to get title information from the Metadata [1] >>> object associated with each Glyph (use Glyph.getOwner() to retrieve >>> that object), but I don't think I actually store the id in that >>> Metadata object. Just the title. I guess I could add it though, if >>> that's of any use. >>> >>> [1] http://zvtm.sourceforge.net/apidocs/com/xerox/VTM/svg/=20 >>> Metadata.html >>> >>> Emmanuel >>> >>> On 6 oct. 07, at 04:37, Daniel Amodeo wrote: >>> >>>> >>>> For Example this my image >>>> http://www.nabble.com/file/p13071737/hello.png >>>> >>>> and this is a part of the svg code: >>>> >>>> - <!-- Hello >>>> --> >>>> - <g id=3D"node1" class=3D"node"> >>>> <title content=3D"structured text">Hello</title> >>>> <ellipse style=3D"fill:none;stroke:black;" cx=3D"36" cy=3D"23" rx=3D= "29" >>>> ry=3D"18" >>>> /> >>>> <text text-anchor=3D"middle" x=3D"36" y=3D"28">Hello</text> >>>> </g> >>>> - <!-- World >>>> --> >>>> - <g id=3D"node3" class=3D"node"> >>>> <title content=3D"structured text">World</title> >>>> <ellipse style=3D"fill:none;stroke:black;" cx=3D"36" cy=3D"95" rx=3D= "31" >>>> ry=3D"18" >>>> /> >>>> <text text-anchor=3D"middle" x=3D"36" y=3D"100">World</text> >>>> </g> >>>> - <!-- Hello->World >>>> --> >>>> - <g id=3D"edge2" class=3D"edge"> >>>> <title content=3D"structured text">Hello->World</title> >>>> <path style=3D"fill:none;stroke:black;" d=3D"M36,41C36,49 36,58 >>>> 36,67" /> >>>> <polygon style=3D"fill:black;stroke:black;" points=3D"40,67 36,77 >>>> 33,67 40,67" >>>> /> >>>> </g> >>>> >>>> At the moment if I click into ellipse named "Hello", the results =20 >>>> is a >>>> zooming. If I want to get the ID of the object clicked? For Example >>>> in the >>>> case for "Hello" the ID is "node1"... >>>> >>>> Thanks >>>> =20 >>>> -------------------------------------------------------------------- >>>> Amodeo Daniel >>>> Universit=C3=A0 degli Studi di Catania >>>> Facolt=C3=A0 di Informatica >>>> Scienze Matematiche Fisiche e Naturali >>>> >>>> --=20 >>>> View this message in context: http://www.nabble.com/GetID-from-SVG- >>>> File-into-the-Applet-tf4577691.html#a13071737 >>>> Sent from the zvtm-devel mailing list archive at Nabble.com. >>>> >>>> >>>> --------------------------------------------------------------------= =20 >>>> -- >>>> --- >>>> This SF.net email is sponsored b: Splunk Inc. >>>> Still grepping through log files to find problems? Stop. >>>> Now Search log events and configuration files using AJAX and a >>>> browser. >>>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>>> _______________________________________________ >>>> zvtm-devel mailing list >>>> zvt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >>> >>> -- >>> Emmanuel Pietriga >>> INRIA Futurs - Projet In Situ tel : +33 1 69 15 34 66 >>> Bat 490, Universit=C3=A9 Paris-Sud fax : +33 1 69 15 65 86 >>> 91405 ORSAY Cedex FRANCE http://www.lri.fr/~pietriga >>> >>> >>> >>> >>> >>> ---------------------------------------------------------------------= =20 >>> ---- >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a =20 >>> browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> zvtm-devel mailing list >>> zvt...@li... >>> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >>> >>> >> >> --=20 >> View this message in context: http://www.nabble.com/GetID-from-SVG-=20 >> File-into-the-Applet-tf4577691.html#a13099279 >> Sent from the zvtm-devel mailing list archive at Nabble.com. >> >> >> ----------------------------------------------------------------------= =20 >> --- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a =20 >> browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> zvtm-devel mailing list >> zvt...@li... >> https://lists.sourceforge.net/lists/listinfo/zvtm-devel >=20 > -- > Emmanuel Pietriga > INRIA Futurs - Projet In Situ tel : +33 1 69 15 34 66 > Bat 490, Universit=C3=A9 Paris-Sud fax : +33 1 69 15 65 86 > 91405 ORSAY Cedex FRANCE http://www.lri.fr/~pietriga >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > zvtm-devel mailing list > zvt...@li... > https://lists.sourceforge.net/lists/listinfo/zvtm-devel >=20 >=20 --=20 View this message in context: http://www.nabble.com/GetID-from-SVG-File-int= o-the-Applet-tf4577691.html#a13132138 Sent from the zvtm-devel mailing list archive at Nabble.com. |