Nathalie Monvoisin wrote:No i have not got any spelling error on line 54. i have to have a shape like Key attribute in ERD.
It looks like something is mis-spelled to me.
As to your problem, the constructor for Line2D.Float takes the x and y start location and the x and y end location of the line. If you want a horizontal line the start and end y values must be the same.
posted 4 years ago
Thanks Tony Docherty. yeah i have a spelling problem :/ i will correct it
I've made a small example of a shape containing a circle and an arrow, and rotating and
drawing it a couple of times. It looks much like your code, but maybe you see one or two
things that might be useful. I use "natural" coordinates for the shape, and set up the
scaling, position and scaling just before drawing. The idea is to use coordinates in your
shape that are natural to that shape. That makes things sometimes much easier.