gephi.team team mailing list archive
-
gephi.team team
-
Mailing list archive
-
Message #00537
Re: [Question #122573]: Graph with Black background and white edges
Question #122573 on Gephi changed:
https://answers.launchpad.net/gephi/+question/122573
Status: Open => Answered
Mathieu Bastian proposed the following answer:
Hello, yes that is possible
* How to change background color in Preview (and therefore PDF/SVG
export)
PreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);
previewController .setBackgroundColor(java.awt.Color color);
However there is the bug 583386 that keeps the background white in the
PDF export. This bug is now fixed in the trunk, but not in the toolkit.
I suggest to either get the latest toolkit JAR from the trunk and build
it (see http://wiki.gephi.org/index.php/How_to_build_the_Gephi_Toolkit)
or wait two weeks for the next toolkit release (with 0.7beta).
* How to change nodes & edges color to white
model.getUniEdgeSupervisor().setColorizer((EdgeColorizer) colorizerFactory.createCustomColorMode(Color.WHITE)); //Set edges gray
model.getNodeSupervisor().setNodeColorizer((NodeColorizer) colorizerFactory.createCustomColorMode(Color.WHITE)); //Set nodes white
model.getNodeSupervisor().setNodeLabelColorizer((NodeChildColorizer) colorizerFactory.createCustomColorMode(Color.WHITE)); //Set nodes labels white);
--
You received this question notification because you are a member of
Gephi Team, which is an answer contact for Gephi.