New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node shape: rounded-box not apply #49
Comments
Hi, the viewer included in gs-core supports only a minimal subset of CSS. To have a full CSS support, use the one included in gs-ui. Make sure that gs-ui.jar is in your classpath and use this instruction before displaying the graph: System.setProperty("gs.ui.renderer",
"org.graphstream.ui.j2dviewer.J2DGraphRenderer"); Hope this helps. |
Works perfectly in the display but ¿This new styles will apply in the pictures save by FileSinkImages? Graph g = new DefaultGraph("g"); Thank you. |
With fsi.setRenderer(RendererType.SCALA); Regards |
Hi there! I also got a question about the node shape. I have gs-ui.jar in my classpath and this at the first line of my code: Then I define a node: Any suggestion here? :) |
I solved the same issue today. My bug was in gs-ui-javafx org.graphstream.ui.javafx.renderer.shape.javafx.Area |
This issue is already fixed graphstream/gs-ui-javafx@bbea8a2 and will be in the next release. |
Great, when will be the release ready? ;-) |
It depends on a lot of things, but I'm hoping it'll probably be done before the summer. |
Hi everyone, firstly: nice job with this library!!
However, with the next code i have one problem (using 1.1 libraries):
Node n = g.getNode(nodeLabel);
n.addAttribute("ui.style" , ("size: 10px, 10px; fill-color: #3d5689; shape: rounded-box; stroke-mode: plain; stroke-color: yellow;");
n.setAttribute("label",nodeLabel);
With the above code, nodes perform the change of size and fill-color well, but not shape, stroke-mode and stroke-color. In edges does not work shape forms.
Edge e = g.getEdge(from+to);
e.addAttribute("ui.style" , "cubic-curve;");
Any suggestion?
Best regards !
The text was updated successfully, but these errors were encountered: