GraphStream Users

Archives de la liste Aide


Click on Node and get the node Id


Chronologique Discussions 
  • From: Artur F <schirmcharmemelone AT googlemail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: Click on Node and get the node Id
  • Date: Mon, 28 Aug 2017 23:46:32 +0200

Hello,

i want to color a node after one has clicked on it. In a way that would show a selection. i dont really need to select more than one node.

Since one can already drag nodes i guess getting the id of the clicked node isnt that complicated?


The code pieces that are available in stack overflow and various other places are extremly complicated. Not only complicated to understand but also very cumbersome to actually use outside of their example. What is the easiest way to do so?

the one example (and various variations) i have tried is this one here; 


Its only useful for this example and is so weirdly constructed that using it in my project is not really possible. am i trapped to work with this example or are there better easier ways?

i only need the nodeId of the clicked node.


  • Click on Node and get the node Id, Artur F, 28/08/2017

Archives gérées par MHonArc 2.6.16.

Top of page