GraphStream Users

Archives de la liste Aide

Re: creating effects like in your YouTube video

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: graphstream-users AT
  • Subject: Re: creating effects like in your YouTube video
  • Date: Tue, 4 Oct 2011 22:04:52 +0200

In fact ViewerListener and swing MouseXListener are
complementary. MouseXListener allow to get pure graphic
events :

- wheel motion ;
- mouse motion ;
- mouse clicks.

Whereas ViewerListener allows to get events related
to the graph :

- there is a click on a node ;
- a view is closed.

You can read this previous thread where we explain
how to use MouseXListener with GraphStream view :

Hope this helps !

2011/10/4 Keith Thompson <kthomps6 AT>
Hi Guilhelm,

Thank you. I am glad to be a part of the community.  The links you sent were very helpful.  I think I would like to start by getting the graph to center on a spot when clicked and zoom in/out according to the mouse wheel.  I am trying to use the Clicks class from the tutorial as an example but I don't really understand what I need to implement in each of the three methods.  I assume that in the buttonPushed and buttonReleased methods, I specify what happens on a mouse click.  Is this different from using javax.swing.event.MouseInputListener?

Thank you for your help.


On Tue, Oct 4, 2011 at 12:24 PM, guilhelm savin <guilhelm.savin AT> wrote:
Hi Keith,

and welcome to the GraphStream community. You should have
a look to the "Graph Visualization" part of the documentation

You can also have a look on the "style" part :

I just post the sources used to generate some frames of the
1.0 video on the web site, in the "Download" section. For example,
the org.graphstream.videos.r10.IMDB could be a good example of
zooming and translating in the view.

If some informations are missing, please ask.



2011/10/4 <kthomps6 AT>

I am new to Graphstream and also new to using the graphical type components of
Java.  I have been able to read in data, create a dgs file and draw the graph
dynamically.  Now I would like to be able to zoom in on individual clusters /
subgraphs.  What topics should I look at (both in graphstream api and in Java)?

Thank you,

Guilhelm Savin
PhD Student of Computer Science

Keith Thompson
Graduate Research Associate, Xerox Corporation
SUNY Research Foundation
Dept. of Systems Science and Industrial Engineering
Binghamton University
work: 585-422-6587

Guilhelm Savin
PhD Student of Computer Science

Archives gérées par MHonArc 2.6.16.

Top of page