Can we use RenderTarget.G2D_TARGET in Gephi 9.1

Please use a mailing-list, see http://gephi.org/developers/
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
yacine
Posts:7
Joined:09 Feb 2017 12:04
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Can we use RenderTarget.G2D_TARGET in Gephi 9.1

Post by yacine » 14 Feb 2017 12:20

When I'm using the demo project, we can use this line of code:

G2DTarget target1 = (G2DTarget) previewController.getRenderTarget(RenderTarget.G2D_TARGET);

to get the render target, but when I'm trying to include the java-tookit 9.1 jar to my projetc then using this code, there is no attribute G2D_TARGET in the RenderTarget Interface;

There is only : PDF, PROCESSING and SVG targets.

Have you any ideas?

Thanks in advance.

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Can we use RenderTarget.G2D_TARGET in Gephi 9.1

Post by eduramiba » 14 Feb 2017 12:29

Are you sure you are using Toolkit version 0.9.1?
Version 0.8.2 used to have processing, but 0.9+ does not.

Check https://github.com/gephi/gephi/issues/1289 and https://github.com/gephi/gephi/blob/0.9 ... arget.java

yacine
Posts:7
Joined:09 Feb 2017 12:04
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Can we use RenderTarget.G2D_TARGET in Gephi 9.1

Post by yacine » 14 Feb 2017 12:37

Hi,

effectively I was using an old Jar,

thanks again for your fast responses,

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable