• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Graphics Fundamentals > Points and Rectangles

16.1. Points and Rectangles

The 2D coordinate system used by SWT is the one used by most graphics libraries, with the zero-point (0,0) at the top left corner of the drawing area and increasing values to the right[1] and downward, as shown in Figure 16.1.

[1] When SWT applications are run in right-to-left language locales, they can be implemented so that the coordinate system is mirrored with the origin in the top right corner and x coordinates increasing from right to left.

Figure 16.1. SWT coordinate system.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint