GraphStream Users

Archives de la liste Aide

Re: node dragging

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: "graphstream-users AT" <graphstream-users AT>, Stefan <stefan.242 AT>
  • Subject: Re: node dragging
  • Date: Fri, 19 Feb 2016 09:39:52 +0100

Hi Stefan,

You can define your own MouseManager, overriding the elementMoving() method such that you check the coordinates of the node before doing the move... Just call the setMouseManager() method of your View to give it your home-brew manager.


2016-02-18 10:49 GMT+01:00 Stefan <stefan.242 AT>:
Hi all,

is there a way to prevent nodes be dragged out of view boundaries which have been set with view.setPreferredSize and view.setMaximumSize? Without using camera.setAutoFitView(true).


Guilhelm Savin
PhD of Computer Science

  • node dragging, Stefan, 18/02/2016
    • Re: node dragging, guilhelm savin, 19/02/2016

Archives gérées par MHonArc 2.6.16.

Top of page