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

Bug 483890

Summary: GeometryNode should use an underlying shape that best matches its geometry.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF FXAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2015-12-08 05:32:22 EST
GeometryNode currently uses a Path delegate as its underlying geometric shape. However, as the layout bounds of different shapes are calculated differently by JavaFX (e.g. a Rectangle is 1 pixel less than a Path representing it; path extends its layout bounds by 0.5 in each direction), we should use a Shape that best matches the given Geometry to achieve that the layout bounds of GeometryNode matches that of the corresponding JavaFX shape.
Comment 1 Alexander Nyßen CLA 2015-12-10 02:54:18 EST
As long as we compensate that certain shapes render with a small gap towards their layout bounds (e.g. Polygon), its safe to go for Path alone. Resolving as WONTFIX though.