[java2d] transform problem w/ rectangle (jdk1.2.1)

1999-05-21 Thread Ralph E. LaChance
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

[java2d] Affine Transforms

1999-05-21 Thread Mark Lentczner
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

Re: [java2d] transform problem w/ rectangle (jdk1.2.1)

1999-05-21 Thread Jim Graham
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