GraphStream Users

Archives de la liste Aide


Re: graphstream-android?


Chronologique Discussions 
  • From: Ismail Ben Ali Ouriaghli <ismail.ben-ali-ouriaghli AT polymtl.ca>
  • To: graphstream-users AT litislab.fr, guilhelm savin <guilhelm.savin AT gmail.com>
  • 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
https://github.com/ismben/AndoirdGS

-
Ismail


guilhelm savin
<guilhelm.savin AT gmail.com>
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 (
https://github.com/graphstream/gs-core/pull/164). 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.

Cheers.
Guilhelm

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

Hi,

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

Greetings,

Markus Schadegg




--
Guilhelm Savin
PhD of Computer Science
LITIS, University of Le Havre
\/\/\/\/\/\/
http://gsav.in
http://nomadogeeks.com
http://graphstream-project.org <http://www.graphstream-project.org>
http://d3-project.org
http://iscn.univ-lehavre.fr
/\/\/\/\/\/\






Archives gérées par MHonArc 2.6.16.

Top of page