Closed mro closed 9 years ago
Thank you for reporting this issue.
I don't know SWT very well, but this code from org.piccolo2d.extras.swt.examples.FillShapeExample,
line 107
PSWTPath rectNullStrokePaint = PSWTPath.createRectangle(325.0f, 400.0f, 50.0f, 100.0f);
rectNullStrokePaint.setPaint(Color.YELLOW);
rectNullStrokePaint.setStrokeColor(null);
seems to do what I would expect, displays a yellow rectangle with no stroke.
Reported by heuermh
on 2012-11-23 18:50:47
Thanks for the answer. The problem seems to not occur when PSWTPath instead of PPath
is used. Just tested it in my application. The difference seems to be that PSWTPath
calls setBackground instead of setColor.
I will use PSWTPath now instead of PPath. Should the bug with PPath still be fixed?
I'm currently only evaluating Piccolo for my project. If I decide to use it, I will
probably create some patches regarding SWT. I see some more problems, for example the
SHAPE_CACHE in SWTGraphics2D. It gets filled up and only gets cleared when the last
SWTGraphics2D object is disposed. This will get problematic when changing PPath/PSWTPath
object are used because after every change to the path object, it gets reinserted without
removing the old one. Or probably I've overseen something?
Reported by ablock84
on 2012-11-23 21:18:48
org.piccolo2d.extras.swt is more of a parallel implementation of the Piccolo2D core
APIs rather than an integration or extension of them. Thus with PSWTCanvas you need
to use all of the PSWT-prefixed subclasses of PNode.
Perhaps this issue might be resolved by adding some documentation in the right place?
With regards to other issues/patches with SWT support, yes, please submit them ideally
with unit tests or an example that demonstrates the problem.
Reported by heuermh
on 2012-11-23 21:39:56
Reported by heuermh
on 2013-01-09 17:00:17
WontFix
Originally reported on Google Code with ID 245
Reported by
ablock84
on 2012-11-23 12:47:10