GraphStream Users

Archives de la liste Aide

edge style: line caps

Chronologique Discussions 
  • From: Szabolcs Horvat <szhorvat AT>
  • To: "graphstream-users AT" <graphstream-users AT>
  • Subject: edge style: line caps
  • Date: Mon, 24 Jun 2013 12:21:34 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US


Is it possible to control the line cap style for edges drawn as lines?

Different standard line cap styles are shown e.g. in this figure:

The default for GraphStream seems to be no. 3 from the left (square caps),
while I'm aiming for no. 1 or no. 2 (butt caps or round caps). The dots in
the figure indicate the line end coordinates. The difference between butt
caps and square caps is that the former ends at the coordinate while the
latter is longer by an amount determined by the line width.

Controlling this would be useful when the line width is comparable to the
size of circular nodes (example:

I don't expect that this control is possible, but GraphStream has surprised
me (pleasantly) in the past, so I thought I'd ask :-)

Thank you,

Archives gérées par MHonArc 2.6.16.

Top of page