Hello,
We're seeing some weirdness in translating (we think)
a rectangle. Our example is trivial -- perhaps we got
it wrong. Any ideas?
Attached code, draws one rectangle and 3 ellipses,
intended to demonstrate dragging an area around
a small canvas.
The behavior is decidedly different for
Folks -
Well, for no other good reason except one or two people dared me to do it,
and as I did it kept suggesting new features to add, I humbly present for
your amusement and possible edu-tainment:
Affine Transforms in Java2D
-=-
an interactive tutorial
Transforms on Area objects are problematic in the 1.2 and 1.2.1 releases.
Try using a GeneralPath instead, or use createTransformedArea to create
a new area in the new position rather than repositioning the old Area
object.
...jim