Exercises
-
27.4 Fill in the blanks in each of the following statements:
Class of the Java 2D API is used to draw ovals.
Methods
drawandfillof classGraphics2Drequire an object of type as their argument.The three constants that specify font style are , and .
Graphics2Dmethod sets the painting color for Java 2D shapes.
-
27.5 State whether each of the following is true or false. If false, explain why.
GraphicsmethoddrawPolygonautomatically connects the endpoints of the polygon.GraphicsmethoddrawLinedraws a line between two points.GraphicsmethodfillArcuses degrees to specify the angle.In the Java coordinate system, values on ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access