Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Real dimension on screen and on paper

Gilles Scokart
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does somebody knows how I can draw a line of precisely 1 inch lenght on the screen and then on paper.
I have write my own component extending JPanel to draw a plan at a given scale. However, when I draw something on the screen I have to use the coordonate system of the given graphics. I can off curse apply a transformation to this graphic, but how can I be sure of the correct scale to apply?
I think it will not be possible with a high precision on the screen (because the screens applies hardware transformations that the user can configure). But an aproximation should alreay be fine.
However, I need a ggod precision when my plan is printed.
Can somebody help me
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic