7. The method sets a style id named greencircle for a node or a scene.
a. node.setStyleId(“greencircle”);
b. node.setId(“greencircle”);
c. node.getStylesheets.addId(“greencircle”);
d. node.setStyle(“greencircle”);
#
8. The getStylesheets() method is defined in .
a. Scene
b. Node
c. Parent
d. Pane
e. Control
#
Section 31.3 QuadCurve, CubicCurve, and Path
9. The QuadCurve class contains the properties.
a. startX, startY
b. endX, endY
c. controlX, controlY
#
10. To construct a QuadCurve with starting point (100, 75.5), control point (40, 55.5), and end point (56, 80), use
.
a. new QuadCurve(100, 75.5, 40, 55.5, 56, 80)
b. new QuadCurve(100, 75.5, 56, 80, 40, 55.5)
c. new QuadCurve(40, 55.5, 100, 75.5, 56, 80)
d. QuadCurve.build().startX(100).startY(75.5).controlX(40).controlY(55.5).endX(56).endY(80).create()
#
11. The CubicCurve class contains the properties.
a. startX, startY
b. endX, endY
c. controlX1, controlY1
d. controlX2, controlY2
e. x, y
#
12. The method moves the Path position to (100, 100).
a. path.moveTo(100, 100)
b. path.getElements().add(new MoveTo(100, 100))
c. path.add(new MoveTo(100, 100))
d. path.getElements().move(100, 100)
#
13. You can draw a segment in the path using .
a. path.addElements().add(new MoveTo(100, 100));