GraphStream Users

Archives de la liste Aide


Re: Mantain graph on screen


Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT gmail.com>
  • To: "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>, mauricio0copo AT gmail.com
  • Subject: Re: Mantain graph on screen
  • Date: Fri, 31 Jan 2014 17:17:07 +0100

Hi,

Once you act on the view to move the camera or zoom it, the settings you give are kept by the camera. However the layout mays drift the graph. In fact the camera has two modes : automatic (it follows the graph) and manual. You enter the manual mode when using the zoom. To reset the view use « R » (or View.getCamera().resetView()).

This behavior is implemented in DefaultShortcutManager.

Antoine


2014-01-31 <mauricio0copo AT gmail.com>:
Hello,

I've been using the attribute "padding: 100px, 100px, 0px;" to mantain the
graph on screen, but every time I zoom in or out (using PgUp and PgDn) this
attribute is nullified and the graph often drifts away with auto layout turned
on.

Can anyone help me?
This also happens with the simplest graphs, so I don't think I need to post my
code here.




Archives gérées par MHonArc 2.6.16.

Top of page