GraphStream Users

Archives de la liste Aide


Re: node styling via CSS


Chronologique Discussions 
  • From: Stefan Balev <stefan.balev AT gmail.com>
  • To: "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>, emixp AT gmx.net
  • Subject: Re: node styling via CSS
  • Date: Mon, 26 May 2014 10:00:57 +0200

Hello,

The default viewer supports only a limited subset of CSS. Use the advanced viewer for full support:

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

Best regards,

--
Stefan



2014-05-26 6:55 GMT+02:00 <emixp AT gmx.net>:
Hello,

I am currently playing around with a minimal application which just creates a
small graph and displays it.

Coloring and re-sizing the nodes using CSS classes works fine, adding labels to
the nodes too.

However, the following CSS code seems to do nothing:

node {
  text-alignment: under;
  text-background-color: #C0C0C0;
  text-background-mode: rounded-box;
}

I'm adding the labels to the nodes like this: node.addAttribute("ui.label",
"test")

Sadly, there is no error message or exceptions, just nothing changes.

What could I do to identify the issue here?

Thank you,
Emanuel




Archives gérées par MHonArc 2.6.16.

Top of page