GraphStream Users

Archives de la liste Aide

Re: graphstream-android?

Chronologique Discussions 
  • From: Ismail Ben Ali Ouriaghli <ismail.ben-ali-ouriaghli AT>
  • To: graphstream-users AT, guilhelm savin <guilhelm.savin AT>
  • Subject: Re: graphstream-android?
  • Date: Sat, 02 Jan 2016 11:21:07 +0000

Hi Markus,

i did a intent to port the library to use it with android by replacing all swing/awt calls by corresponding android-java calls
i was able to use the generators to draw some graphs on surface views with canvas
please note that the code is still unastable and there are some bugs to fix


guilhelm savin
<guilhelm.savin AT>
a écrit :

Hi Markus,

Yes there are possibilities to use something else than swing.
We start to create a "generic" base for the viewer, to allow one to define
his own rendering system. Classes in org.graphstream.ui.view, Viewer and
View, aim to provide this base.
Unfortunately, there were still some links to swing stuffs. We remove these
links in a pull request that should be merged soon ( It will provide a generic
GraphRenderer interface. So you can use it to implement your own android

So you will have to :
1. Create your AndroidGraphRenderer, it will define how to draw elements ;
2. Provide an AndroidView, it will define the rendering surface (for
example, ViewPanel/DefaultView in org.graphstream.ui.swingViewer provide a
view as a JPanel).

This is a bit new, and totally undocumented, so please, ask if you have any
questions about how things work. It could be really interesting to have a
renderer for Android.


2015-12-31 19:05 GMT+01:00 Markus Schadegg
<mschadegg1974 AT>:


(my french is not very good... sorry)

are there plans/possibilities to draw graphstream graphs on anything else
than swing/awt?

I would like to draw on an android surface view (Canvas)...

Or: how could someone implement a SurfaceView-renderer comparable to


Markus Schadegg

Guilhelm Savin
PhD of Computer Science
LITIS, University of Le Havre
\/\/\/\/\/\/ <>

Archives gérées par MHonArc 2.6.16.

Top of page