ktmprabhu / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Transparent line-color not working #308

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Spray.

What steps will reproduce the problem?
1.Create a shape with a rectangle and a text inside
2.Apply style(line-color = transparent) to the rectangle
3.Create a diagram and recognize that you can't edit and see the text.

Detailed description:
In the attached files you can see in Figure 1, which
has a black line color, that you can edit and see the text.
Once changing the line color to transparent (Listing 1),
you'll get the output shown in Figure 2. It shows still
black color, and no text can be edited.

The expected behavior is shown in Figure 3, which could
be achieved by changing the generated <shape ID>Base.class
code shown in Listing 2.

Overriding the non <shape ID>.class is a workaround,
but I believe that the problem should be fixed in the generated code.

Regards
Wolfgang

build 202 on Eclipse Kepler under Windows XP 32 Bit.

Original issue reported on code.google.com by wolfg...@die-schmieders.de on 6 Nov 2013 at 12:02

Attachments:

GoogleCodeExporter commented 8 years ago
using style(line-width = 0) should be used instead of line-color = transparent 
as it has the same effect and expresses more clearly what you want: there 
should be no line around the rectangle

Original comment by de.abg.r...@gmail.com on 10 Nov 2013 at 4:22

GoogleCodeExporter commented 8 years ago
anyway using line-color = transparent should not generate code that passes a 
null IColorConstant to manage color as it doesn't perform null handling:

element_1.setForeground(gaService.manageColor(diagram, null));

Original comment by de.abg.r...@gmail.com on 10 Nov 2013 at 4:28

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 11fb2773271e.

Original comment by de.abg.r...@gmail.com on 10 Nov 2013 at 5:11

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 11fb2773271e.

Original comment by de.abg.r...@gmail.com on 21 Mar 2014 at 3:30