-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 No worries at all, thank you for the tips. My project is a graphics-heavy adaptation of a board game, which I imagine is far from the most common Pivot use case. I'll look into making my own classes, or maybe adapting and re-using the old classes from Pivot < 2.0. Congrats on the new version!
On 01/14/2011 07:53 AM, Greg Brown wrote: > Oh no! Sorry about that. > > Pivot 2.0 still supports "immediate mode" drawing. You can do this in a > couple of ways, but the easiest is to create a class that extends Panel and > overrides paint(). Then you can use the drawing operations on the Graphics2D > object passed to the method to draw your shapes. Pivot's "shape DOM" classes > were mostly just wrappers around the drawing primitives in java.awt.geom > anyways. > > Hope this helps. > > Greg > > On Jan 14, 2011, at 12:17 AM, Clint Gilbert wrote: > > From the sound of things on > > https://cwiki.apache.org/PIVOT/major-feature-changes-between-15x-and-20.html > > I was one of the few people who used the "shape DOM" classes from > org.apache.pivot.wtk.media.drawing. I found the new Drawing and > SVGDiagramSerializer classes but those seem (at a glance) to require > loading up an SVG file from a stream. Is that so? Is there a way in > Pivot 2.0 to draw simple shapes programatically, as was possible in > Pivot 1.5? > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0yKysACgkQ0GFaTS4nYxtN9gCcChWt/Xtnfw0kBnc+1xVf6fYc 1J8AoM0Umua33fgSXlgMSQPXoUcUItZm =9vjJ -----END PGP SIGNATURE-----
