Which of the following code snippets creates a Line and uses a RotateTransition object to animate it for seven seconds?

a. Line myLine = new Line(25, 50, 100, 50);
RotateTransition rtrans =
new RotateTransition(new Duration(7000), myLine);

b. Line myLine = new Line(25, 50, 100, 50);
RotateTransition rtrans =
new RotateTransition(new Duration(7), myLine);

c. Line myLine = new Line(25, 50, 100, 50);
RotateTransition rtrans =
new Duration(7000), myLine;

d. Line myLine = new Line(25, 50);
RotateTransition rtrans =
new RotateTransition(new Duration(7000), Line);


a. Line myLine = new Line(25, 50, 100, 50);
RotateTransition rtrans =
new RotateTransition(new Duration(7000), myLine);

Computer Science & Information Technology

You might also like to view...

For an array containing 2, 3, 5, 6, 9, 13, 16, and 19, what value does a recursive binary search algorithm return when it searches for 6?

a. 1 b. 3 c. 4 d. none of the above

Computer Science & Information Technology

MC To display items on a Canvas, programs create__________ .

a) canvas actions. b) canvas items. c) canvas events. d) None of the above.

Computer Science & Information Technology