masghar / piccolo2d

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

PNode.SetPaint() is not working (SWT version) #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create PSWTCanvas in Eclipse RCP application and add few nodes.
2. Set color for nodes using PNode.SetPaint(Color)
3.

What is the expected output? What do you see instead?
Expect that node will be filled with assigned color, but it changed the
color of the border.

When use this method in SWING version, it is working fine, as expected.

What version of the product are you using? On what operating system?
Piccolo 1.3
Please provide any additional information below.

 When Integrate SWING Canvas in to the RCP application(SWT) ,
PNode.setPaint(Color) is working as expected, but could not get smooth
display or zooming feature.

Original issue reported on code.google.com by tssuth...@gmail.com on 24 Apr 2010 at 10:31

Attachments:

GoogleCodeExporter commented 9 years ago
When using PSWTCanvas, you need to use the SWT versions of the core Piccolo2D
classes, e.g. PSWTPath instead of PPath.

Take a look at the swt-examples in the source distribution or the svn 
repository.

Original comment by heue...@gmail.com on 27 Apr 2010 at 8:28

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 24 Aug 2010 at 2:50