Describe the graphical coordinate system in java


Question 1: Describe the graphical coordinate system in Java. Where is the origin? What units apply to the x,y coordinates?

Question 2: How would you use the Graphics class to draw a line between 2 specific points? Give an example.

Question 3: How do you specify a particular color to be used as fill when using the Graphics class?

Question 4: How would you create a SanSerif font of point size 14 that is bold and italic? Give an example.

Question 5: Given a graphics object g, write a few lines of code to have that graphics object draw a green circle (filled in) that has a diameter of 100 pixels.

Question 6: Given a graphics object g, write a few lines of code to draw a red rectangle (not filled in) with its upper left corner at position 25, 25 with a width of 100 and a height of 50.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Describe the graphical coordinate system in java
Reference No:- TGS0535780

Expected delivery within 24 Hours