Skip to content
Snippets Groups Projects
Commit 29944941 authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

Merge branch '75-fix-javadoc-for-gui-module' into 'master'

Fixed javadoc

Closes #75

See merge request grp-fidentis/analyst2!81
parents bc2b2d91 c213b9a8
No related branches found
No related tags found
No related merge requests found
package cz.fidentis.analyst.newgui.canvas; package cz.fidentis.analyst.newgui.canvas;
import com.jogamp.opengl.awt.GLCanvas;
import com.jogamp.opengl.util.FPSAnimator; import com.jogamp.opengl.util.FPSAnimator;
import cz.fidentis.analyst.newgui.scene.Camera; import cz.fidentis.analyst.newgui.scene.Camera;
import java.util.Timer; import java.util.Timer;
...@@ -15,6 +14,9 @@ import java.util.TimerTask; ...@@ -15,6 +14,9 @@ import java.util.TimerTask;
*/ */
public class RotationAnimator { public class RotationAnimator {
/**
* @author Radek Oslejsek
*/
public enum Direction { public enum Direction {
ROTATE_LEFT, ROTATE_LEFT,
ROTATE_RIGHT, ROTATE_RIGHT,
...@@ -97,6 +99,8 @@ public class RotationAnimator { ...@@ -97,6 +99,8 @@ public class RotationAnimator {
case ZOOM_OUT: case ZOOM_OUT:
camera.zoomOut(3); camera.zoomOut(3);
break; break;
default:
throw new UnsupportedOperationException();
} }
} }
}; };
...@@ -130,6 +134,8 @@ public class RotationAnimator { ...@@ -130,6 +134,8 @@ public class RotationAnimator {
case ZOOM_OUT: case ZOOM_OUT:
camera.zoomOut(30); camera.zoomOut(30);
break; break;
default:
throw new UnsupportedOperationException();
} }
} }
startClickTime = 0; startClickTime = 0;
......
...@@ -35,6 +35,11 @@ public class Scene { ...@@ -35,6 +35,11 @@ public class Scene {
private final Camera camera = new Camera(); private final Camera camera = new Camera();
/**
* Adds a drawable object into the scene.
*
* @param dr Drawable object
*/
public void addDrawale(Drawable dr) { public void addDrawale(Drawable dr) {
if (dr != null) { if (dr != null) {
drawables.add(dr); drawables.add(dr);
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<property name="max" value="220"/> <property name="max" value="220"/>
</module>--> </module>-->
<module name="MethodLength"> <module name="MethodLength">
<property name="max" value="70"/> <property name="max" value="200"/>
<property name="countEmpty" value="false"/> <property name="countEmpty" value="false"/>
</module> </module>
<module name="ParameterNumber"/> <module name="ParameterNumber"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment