Hi All !!
In my programme, I'm drawing on a Jpanel acording to XML base cordinate sturucture. Since, java starting (0,0) point from the left top corner, I used the "translate" and "scale" to reverse the cordinate system, so that, its showing cordinate system as it started from bottom left corner of the panel. Follwing is the code I used.
g2.translate(5,d.height-50);
g2.scale(1.0,-1.0);
==> "d" is keeping the Dimension of the panel.
My problem is, I'm drawing Line Id's (a text) with the line after applying this transformation, so that, text also displaying upside down. So I wnat to apply that tranformation only for the lines I drawing, nt for the text parts. I tried, sevaral ways to do this, non of it worked.
So if anyone knows, how to do this, pls let me know !!
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).