From: guilhelm savin <guilhelm.savin AT gmail.com>
To: "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>, Stefan <stefan.242 AT gmail.com>
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.
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).