GraphStream Users

Archives de la liste Aide


Re: Export graph to image file


Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT gmail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: Re: Export graph to image file
  • Date: Thu, 7 Jul 2011 18:31:06 +0200

stroke-* and shadow-* work with the gs-ui Scala renderer. You
can enable it for Graph.display() with :

| System.setProperty("gs.ui.renderer", "org.graphstream.ui.j2dviewer.J2DGraphRenderer");

before the call to display(). You use it too in FileSinkImage
with :

| FileSinkImages.setRendererType(RendererType.SCALA);

The only way to 'customize' layout is using elements attribute
"layout.weight". There is a lack of layouts but we really want
to provide more !

Hope this helps ...


2011/7/7 Javier Orellana <fjorella AT ual.es>
Finally I could test the functionality for image exportation and it works perfectly.

The only thing I miss is some options to adjust the layout automatically.
In other thread there is a comment about the lack of algorithms for the layout, but I wonder if there would be any parameter to set any kind of configuration about the current layout (besides stabilizeLayout())

Probably this is not the right place, but I have found some issues related to the CSS behaviour. I have tried some examples shown in the CSS tutorial, and those that include the properties stroke-__ and shadow-__ do not seem to work. Borders and shadows in nodes are never shown. I even tried setting the properties quality and antialias but without any result. (I can open a new thread for this issue if you consider so).

Thanks again
Regards

El 05/07/2011 12:46, guilhelm savin escribió:
My mistake. I do not include deps in the jar.
Same link  here, new jar (with dependencies).


2011/7/5 Javier Orellana <fjorella AT ual.es>
Hello again!

I get a NoClassDefFoundError exception when I try to execute the code

java.lang.NoClassDefFoundError: org/miv/pherd/ParticleBoxListener

I have both gs-core.jar and gs-ui.jar files included in my application. Is this class located on a different jar file?

-- 
Fco. Javier Orellana Zubieta
Dpto. Lenguajes y Computación
UNIVERSIDAD DE ALMERÍA
fjorella AT ual.es


El 05/07/2011 10:34, guilhelm savin escribió:
Jar is available here.
So, good luck :)


2011/7/5 <fjorella AT ual.es>
Wow! that's what I call efficiency!

I have just seen the changes in the new version and the new constructor
implemented for FileSinkImages.

So... I will take the risk of testing that "experimental" functionality... wish
me luck!
I would appreciate if you could make the jar available at any location to
download it...

Anyway I will try the option described by Antoine as well (thanks!).

Thanks for the answers :)
I'll keep you up to date with the results of this experiment.

Regards,

F. Javier Orellana



--
Guilhelm Savin
PhD Student of Computer Science





--
Guilhelm Savin
PhD Student of Computer Science


-- 
Fco. Javier Orellana Zubieta
Dpto. Lenguajes y Computación
UNIVERSIDAD DE ALMERÍA
Carretera Sacramento s/n
04120 ALMERÍA
Teléfono: 950 214268
Fax: 950 015129
fjorella AT ual.es



--
Guilhelm Savin
PhD Student of Computer Science




Archives gérées par MHonArc 2.6.16.

Top of page