GraphStream Users

Archives de la liste Aide


Re: node dragging


Chronologique Discussions 
  • 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.

Cheers.
Guilhelm

2016-02-18 10:49 GMT+01:00 Stefan <stefan.242 AT gmail.com>:
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).

Cheers
Stefan



--
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