List to Degrees

Help! I am doing Swing Project referred from and want to all numbers output in the list to be my rotation degrees as shown. Could someone help to solve this problem to make swing rotate automatically? I also attach my file. 507

I’d suggest rotating the Coordinate System using Geometry.Transform.