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

Bug 307277

Summary: Introduce Path to Geometry package
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2010-03-27 05:15:56 EDT
Build Identifier: M20100211-1343

A Rotatable interface could be introduced to org.eclipse.draw2d.geometry to define rotation operation (similar to as Translatable defines translation (and currently also scaling; see #307276)). 

A Path geometric object could further be introduced to implement the Rotatable interface and thus add support for calculation of rotation on arbitrary geometric shapes. Transform could be generalized to allow transformation of such Paths instead of just points.

Reproducible: Always
Comment 1 Alexander Nyßen CLA 2011-02-03 11:39:57 EST
Having reconsidered this, I think it would be better not to introduce a rotatable Interface, but to instead generalize Transform to be able to perform arbitrary affine transformations (or deprecate it and introduce an AffineTransform instead). As the geometry packages is missing several shapes and it does not make sense to file an individual bug for each of them, resolving this as INVALID and addressing these issues under bug #307278.