Check out example codes for "draw single point java". It will help you in understanding the concepts better.

Code Example 1

drawLine(x1, y1, x1, y1)

Learn ReactJs, React Native from akashmittal.com