@@ -101,11 +101,11 @@ public void prepareToRotate(@NotNull final Node parent, @NotNull final Node chil
101101 child .setLocalRotation (transform .getRotation ());
102102 }
103103
104- @ NotNull
105104 @ Override
106105 @ JmeThread
107- protected Vector3f getScaleAxis (@ NotNull final Transform transform , @ NotNull final PickedAxis pickedAxis ,
108- @ NotNull final Camera camera ) {
106+ protected @ NotNull Vector3f getScaleAxis (@ NotNull final Transform transform ,
107+ @ NotNull final PickedAxis pickedAxis ,
108+ @ NotNull final Camera camera ) {
109109
110110 final LocalObjects local = LocalObjects .get ();
111111
@@ -126,10 +126,11 @@ public void prepareToMove(@NotNull final Node parent, @NotNull final Node child,
126126 child .setLocalRotation (transform .getRotation ());
127127 }
128128
129- @ NotNull
129+
130130 @ Override
131131 @ JmeThread
132- public Quaternion getToolRotation (@ NotNull final Transform transform , @ NotNull final Camera camera ) {
132+ public @ NotNull Quaternion getToolRotation (@ NotNull final Transform transform ,
133+ @ NotNull final Camera camera ) {
133134 return Quaternion .IDENTITY ;
134135 }
135136 },
@@ -146,11 +147,11 @@ public void prepareToRotate(@NotNull final Node parent, @NotNull final Node chil
146147 child .setLocalRotation (transform .getRotation ());
147148 }
148149
149- @ NotNull
150150 @ Override
151151 @ JmeThread
152- protected Vector3f getScaleAxis (@ NotNull final Transform transform , @ NotNull final PickedAxis pickedAxis ,
153- @ NotNull final Camera camera ) {
152+ protected @ NotNull Vector3f getScaleAxis (@ NotNull final Transform transform ,
153+ @ NotNull final PickedAxis pickedAxis ,
154+ @ NotNull final Camera camera ) {
154155
155156 final LocalObjects local = LocalObjects .get ();
156157
@@ -161,11 +162,11 @@ protected Vector3f getScaleAxis(@NotNull final Transform transform, @NotNull fin
161162 } else return getLeft (camera .getRotation (), local .nextVector ());
162163 }
163164
164- @ NotNull
165165 @ Override
166166 @ JmeThread
167- protected Vector3f getPickedVector (@ NotNull final Transform transform , @ NotNull final PickedAxis pickedAxis ,
168- @ NotNull final Camera camera ) {
167+ protected @ NotNull Vector3f getPickedVector (@ NotNull final Transform transform ,
168+ @ NotNull final PickedAxis pickedAxis ,
169+ @ NotNull final Camera camera ) {
169170
170171 final LocalObjects local = LocalObjects .get ();
171172
@@ -186,20 +187,19 @@ public void prepareToMove(@NotNull final Node parent, @NotNull final Node child,
186187 child .setLocalRotation (Quaternion .IDENTITY );
187188 }
188189
189- @ NotNull
190190 @ Override
191191 @ JmeThread
192- public Quaternion getToolRotation (@ NotNull final Transform transform , @ NotNull final Camera camera ) {
192+ public @ NotNull Quaternion getToolRotation (@ NotNull final Transform transform ,
193+ @ NotNull final Camera camera ) {
193194 return camera .getRotation ();
194195 }
195196 };
196197
197198 @ NotNull
198199 private static final TransformationMode [] VALUES = values ();
199200
200- @ NotNull
201201 @ FromAnyThread
202- public static TransformationMode valueOf (final int index ) {
202+ public static @ NotNull TransformationMode valueOf (final int index ) {
203203 return VALUES [index ];
204204 }
205205
@@ -210,9 +210,8 @@ public static TransformationMode valueOf(final int index) {
210210 * @param camera the camera.
211211 * @return the tool rotation.
212212 */
213- @ NotNull
214213 @ JmeThread
215- public Quaternion getToolRotation (@ NotNull final Transform transform , @ NotNull final Camera camera ) {
214+ public @ NotNull Quaternion getToolRotation (@ NotNull final Transform transform , @ NotNull final Camera camera ) {
216215 return transform .getRotation ();
217216 }
218217
@@ -271,16 +270,18 @@ public void prepareToMove(@NotNull final Node parent, @NotNull final Node child,
271270 * @param camera the camera.
272271 * @return the axis vector.
273272 */
274- @ NotNull
275273 @ JmeThread
276- protected Vector3f getPickedVector (@ NotNull final Transform transform , @ NotNull final PickedAxis pickedAxis ,
277- @ NotNull final Camera camera ) {
274+ protected @ NotNull Vector3f getPickedVector (@ NotNull final Transform transform ,
275+ @ NotNull final PickedAxis pickedAxis ,
276+ @ NotNull final Camera camera ) {
278277
279278 if (pickedAxis == PickedAxis .Y ) {
280279 return Vector3f .UNIT_Y ;
281280 } else if (pickedAxis == PickedAxis .Z ) {
282281 return Vector3f .UNIT_Z ;
283- } else return Vector3f .UNIT_X ;
282+ } else {
283+ return Vector3f .UNIT_X ;
284+ }
284285 }
285286
286287 /**
@@ -291,10 +292,9 @@ protected Vector3f getPickedVector(@NotNull final Transform transform, @NotNull
291292 * @param camera the camera.
292293 * @return the axis vector.
293294 */
294- @ NotNull
295295 @ JmeThread
296- protected Vector3f getScaleAxis (@ NotNull final Transform transform , @ NotNull final PickedAxis pickedAxis ,
297- @ NotNull final Camera camera ) {
296+ protected @ NotNull Vector3f getScaleAxis (@ NotNull final Transform transform ,
297+ @ NotNull final PickedAxis pickedAxis , @ NotNull final Camera camera ) {
298298
299299 if (pickedAxis == PickedAxis .Y ) {
300300 return Vector3f .UNIT_Y ;
@@ -309,9 +309,8 @@ protected Vector3f getScaleAxis(@NotNull final Transform transform, @NotNull fin
309309 *
310310 * @return the center of transformation.
311311 */
312- @ Nullable
313312 @ JmeThread
314- Transform getTransformCenter ();
313+ @ Nullable Transform getTransformCenter ();
315314
316315 /**
317316 * Sets picked axis.
@@ -326,27 +325,24 @@ protected Vector3f getScaleAxis(@NotNull final Transform transform, @NotNull fin
326325 *
327326 * @return the picked axis.
328327 */
329- @ NotNull
330328 @ JmeThread
331- PickedAxis getPickedAxis ();
329+ @ NotNull PickedAxis getPickedAxis ();
332330
333331 /**
334332 * Gets the transform mode.
335333 *
336334 * @return the transform mode.
337335 */
338- @ NotNull
339336 @ JmeThread
340- EditorTransformSupport .TransformationMode getTransformationMode ();
337+ @ NotNull EditorTransformSupport .TransformationMode getTransformationMode ();
341338
342339 /**
343340 * Gets collision plane.
344341 *
345342 * @return the collision plane.
346343 */
347- @ Nullable
348344 @ JmeThread
349- Node getCollisionPlane ();
345+ @ Nullable Node getCollisionPlane ();
350346
351347 /**
352348 * Set delta of transformation.
@@ -401,9 +397,8 @@ protected Vector3f getScaleAxis(@NotNull final Transform transform, @NotNull fin
401397 *
402398 * @return the model to transform.
403399 */
404- @ Nullable
405400 @ JmeThread
406- Spatial getToTransform ();
401+ @ Nullable Spatial getToTransform ();
407402
408403 /**
409404 * Notify transformed.
@@ -418,7 +413,6 @@ protected Vector3f getScaleAxis(@NotNull final Transform transform, @NotNull fin
418413 *
419414 * @return the camera.
420415 */
421- @ NotNull
422416 @ JmeThread
423- Camera getCamera ();
417+ @ NotNull Camera getCamera ();
424418}
0 commit comments