GraphStream Users

Archives de la liste Aide


Mouse events in graphstream


Chronologique Discussions 
  • From: Stephen Ficklin <spficklin AT gmail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: Mouse events in graphstream
  • Date: Fri, 16 Sep 2011 00:25:55 -0400

Hello,

I'm trying to use graphstream to visualize a large network. I can successfully read in the network, display it and zoom in and out using the wheel on my mouse. To zoom I use the java.awt.event.MouseWheelListener class. I'd like to allow panning side to side or up and down by clicking and holding the mouse button and dragging, but I can't seem to make this work. Is there a way in graphstream to capture mouse events in the view? I see that I can do this using the ViewerListener, but the buttonPushed or buttonReleased only works when I click a node in the graph. I'd like panning to work regardless of where the user clicks in the view.

Thanks,
Stephen



Archives gérées par MHonArc 2.6.16.

Top of page