How can i convert from logical coordinate to device in java
<p>I read wireframe applet example bundled with jdk examples but I didn't understanded how it converted from logical to device coordinate system. </p>

<p>For example, if I want to set the coordinate system to center of screen I use the following code:</p>

<pre><code>int iX(float x) {
  return Math.round(centerX + x/pixelSize);
}
int iY(float y) {
  return Math.round(centerY - y/pixelSize);
}
float fx(int x) {
  return (x - centerX) * pixelSize;
}
float fy(int y){
  return (centerY - y) * pixelSize;
}
</code></pre>

<p>Is it possible a way to draw without this conversion?</p>
