Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 418906

Summary: PointList and PrecisionPoint
Product: [Tools] GEF Reporter: Falko Schumann <falko.schumann>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 3.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Falko Schumann CLA 2013-10-08 07:21:57 EDT
PointList stores Points internal as int array. So PointList is useless for Lists of PrecisionPoint. Using an List<Point> as option, I miss usefull functions like bounds, intersects, contains and so on.
Comment 1 Alexander Nyßen CLA 2013-10-14 14:19:46 EDT
Please take a look at the new GEF4 geometry component (http://wiki.eclipse.org/GEF/GEF4/Geometry), which is the intended replacement of the current Draw2d geometry API. 

GEF4 Geometry provides Polyline and Polygon implementations (and other more complex geometries), which probably offer what you expect (if not, please open a separate bug against the GEF4 Geometry component and report your wishes there). 

You can use it in combination with Draw2d and GEF (while you will have to convert between the Draw2d geometry API and GEF4 Geometry by using the SWT conversion fragment of GEF4 Geometry as an intermediate; you can find details on the supported conversions on above listed wiki page as well).

I am resolving this as wontfix, because we do not plan to spend any effort on adding new features to the Draw2d geometry API we intend to replace.
Comment 2 Falko Schumann CLA 2013-10-14 14:32:31 EDT
O.k. I think this help. I try to use GEF 4 geometry for calculations and convert to Draw2d geometry for painting figures.