timjencar / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
0 stars 0 forks source link

Boxlinecolor #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi. I'm working with your Mscgen and found an issue, maybe it isn't an issue.
I have two times and an transmission_time. So my idea was, to put the
transmission_time into a box, but a box with white lines, because they are
invisible.

What is the expected output? What do you see instead?
The expected output is a line, with a Sent_time and an operation_type. The
transmission_time should be in an invisible box. But the Diagram shows me
the box, it doesn't include the color. See below for a screen.

What version of the product are you using? On what operating system?
Version 0.17 on Ubuntu 9.04 (jaunty)

Please provide any additional information below, including sample input
file:

And here the code, what should be:
msc {
  hscale = "3";
  aranea_api,aranea_core;
aranea_api => aranea_core [label = "SENT: 2009/10/06 17:06:38.816
tigr.user::login"];
|||;
aranea_core rbox aranea_core [label="Transmission_Time: 1ms ",
linecolour="white"],
aranea_core => aranea_api [label = " tigr.user::login_reply SENT:
2009/10/06 17:06:38.908"];
|||;
aranea_core rbox aranea_core [label="Transmission_Time: 1ms ",
linecolour="white"],
aranea_core => aranea_api [label = " tigr.user::login_reply SENT:
2009/10/06 17:06:38.908"];
|||;
aranea_core rbox aranea_core [label="Transmission_Time: 1ms ",
linecolour="white"],
aranea_core => aranea_api [label = " tigr.user::login_reply SENT:
2009/10/06 17:06:38.908"];
|||;
aranea_core rbox aranea_core [label="Transmission_Time: 1ms ",
linecolor="white", textcolor="red", arclinecolor="red"],
aranea_core => aranea_api [label = " tigr.user::login_reply SENT:
2009/10/06 17:06:38.908"];
|||;
}

Original issue reported on code.google.com by tomiakab...@gmail.com on 11 Dec 2009 at 9:44

Attachments:

GoogleCodeExporter commented 9 years ago
this bug seems to be specific to the box arcs: it seems that the 
linecolor/linecolour
attribute is simply ignored and the default color (black) is used for the lines.
Setting the linecolor for arrows works.

Original comment by googelyb...@gmail.com on 11 Dec 2009 at 10:07

GoogleCodeExporter commented 9 years ago
Yeah, right. For Arrows or Text it Works, you also can color the text inside the
boxes. But why shouldn't boxes be able to have other colors than black?
Like i said, maybe it's a bug or maybe it's disposed.

Original comment by tomiakab...@gmail.com on 11 Dec 2009 at 11:01

GoogleCodeExporter commented 9 years ago
Hi

I created a patch that makes mscgen use linecolour as the color of the box. 
However, looking at the result, I am fairly certain it is not what you want. I 
have attached the result of your test case with this patch (except I changed 
one of the boxes to use green instead of white).

It now properly changes the color, but with colour="white" part of the entity 
appears to disappear (because the box is drawn on top of the entity). Whether 
the arc is on top of the box or not should depend on the ordering in the 
msc-file, so that is not a problem.

You may be able to use a C -- C [ label="Text", linecolour="white" ] as a work 
around[1].

~Niels

[1] Technically a little part of the entity line disappears with this, but 
other than that the result was rather good IMO. Though the result could be 
specific to this case.

Original comment by NThykier@gmail.com on 24 Jun 2010 at 9:09

Attachments:

GoogleCodeExporter commented 9 years ago
Box linecolour is fixed by r110.
The example still gives nasty output, but I'm not sure quite what is wanted and 
Neils makes a good suggestion to add a workaround.

Original comment by Michael....@gmail.com on 16 Aug 2010 at 4:49