GraphStream Users

Archives de la liste Aide

Re: graphstream-android?

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: "graphstream-users AT" <graphstream-users AT>, Markus Schadegg <mschadegg1974 AT>
  • Subject: Re: graphstream-android?
  • Date: Sat, 2 Jan 2016 10:21:49 +0100

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

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


Markus Schadegg

Guilhelm Savin
PhD of Computer Science

Archives gérées par MHonArc 2.6.16.

Top of page