Home Segments Top Top Previous Next

1114: Mainline

The methods supplied by the Graphics class expect you to supply coordinate values as int instances that define screen locations. The methods supplied by the Graphics2D class itself expect you to supply coordinates in a user coordinate space in which the coordinates are specified by float instances. Instances of the Graphics2D class translate those float instances into a display coordinate space, in which the coordinates are specified in whatever form is natural to the display device.