Coordinate system of java | Graphics2D coordinate system | Razsoft Education
As we all know java follows WORA(Write Once Run Anywhere) principle. So, in this process it may encounter many different size and type of output devices. To give the same user experience to users across all devices java manages two different coordinate system. 1. User space coordinate system 2. Device space coordinate system 1. User space coordinate system :- It's a device independent coordinate system also called logical coordinate system. Which is used by developers to draw and set elements in application. It's relative to the application. In java to do all the graphical drawing we use this coordinate system. In user space top left corner is 0,0 position. The x- coordinate goes horizontally from left to right, and y-coordinate moves from top to bottom. And a point is defined by first x - coordinate followed by y- coordinate. 2. Device space coordinate system :- It's a device depend...