Updates:
        Status: Started
        Labels: -Milestone-2.0

Comment #9 on issue 152 by [email protected]: Refactor PPath to use Path2D on JDK 1.6+
http://code.google.com/p/piccolo2d/issues/detail?id=152

I think there is a nice pattern established by the 1.6 Path2D abstract class and concrete Path2D.Float and Path2D.Double classes (similar to rest of JDK 1.2+ Java2D API) and I've used that in an abstract PPath class and concrete PPath.Float and PPath.Double classes.

At this point, I'm not yet convinced that

void setPathTo(...)
void setPath[Reference](Path2D path)
Path2D getPath[Reference]()

methods are necessary.

Then I still have yet to determine whether property change events should be thrown from PShape (where they would be "shape" property changes, and clients would have to cast to Area or Path2D as appropriate) or from PArea (as "area" property changes) and PPath (as "path" property changes) so that the cast would not be required.

See r1033 or later on branches/ppath-refactoring.

I'm removing the Milestone-2.0 label since I'm not sure when this might land on trunk, with resistance to moving to jdk 1.6+ for version 2.0.

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to