Jelajahi Sumber

fix typos in class names

Eren Yilmaz 6 tahun lalu
induk
melakukan
542637aa45

+ 3 - 3
src/Algorithms/Animated/AnnimatedAlgorithm.java → src/Algorithms/Animated/AnimatedAlgorithm.java

@@ -2,12 +2,12 @@ package Algorithms.Animated;
 
 import Model.LayeredGraphNode;
 
-public abstract class AnnimatedAlgorithm extends Thread implements AlgorithmStep {
+public abstract class AnimatedAlgorithm extends Thread implements AlgorithmStep {
 
-	protected AnnimationController ac;
+	protected AnimationController ac;
 	protected LayeredGraphNode graph;
 	
-	public AnnimatedAlgorithm( AnnimationController controller, LayeredGraphNode graph )
+	public AnimatedAlgorithm( AnimationController controller, LayeredGraphNode graph )
 	{
 		this.ac = controller;
 		this.graph = graph;

+ 2 - 3
src/Algorithms/Animated/AnnimationController.java → src/Algorithms/Animated/AnimationController.java

@@ -1,14 +1,13 @@
 package Algorithms.Animated;
 
-public class AnnimationController {
-
+public class AnimationController {
 	
 	private Action next;
 	private boolean continuous;
 	private long lastTime;
 	private long timeBetween;
 	
-	public AnnimationController()
+	public AnimationController()
 	{
 		next = null;
 		continuous = false;

+ 4 - 4
src/Algorithms/Animated/BK/BKNodePlacement.java

@@ -1,11 +1,11 @@
 package Algorithms.Animated.BK;
 
 import Algorithms.Animated.AlgorithmStep;
-import Algorithms.Animated.AnnimatedAlgorithm;
-import Algorithms.Animated.AnnimationController;
+import Algorithms.Animated.AnimatedAlgorithm;
+import Algorithms.Animated.AnimationController;
 import Model.LayeredGraphNode;
 
-public class BKNodePlacement extends AnnimatedAlgorithm {
+public class BKNodePlacement extends AnimatedAlgorithm {
 
 	/*
 	 * Private data structures to store the process of the algorithm
@@ -24,7 +24,7 @@ public class BKNodePlacement extends AnnimatedAlgorithm {
 	private Layout layouts[];
 	private Combine combine;
 	
-	public BKNodePlacement(AnnimationController controller, LayeredGraphNode graph) {
+	public BKNodePlacement(AnimationController controller, LayeredGraphNode graph) {
 		super(controller, graph);
 		state = State.LAYOUT1;
 		layouts = new Layout[ 4 ];

+ 2 - 1
src/Model/LayeredEdge.java

@@ -6,7 +6,8 @@ import java.util.ArrayList;
 import org.eclipse.elk.graph.ElkEdge;
 
 /**
- * Die Implementation einer Kante aus einem Layered Graphen
+ * Die Implementation einer Kante aus einem Layered Graphen.
+ * Implementiert {@link LayeredGraphEdge.}
  * 
  * @author kolja
  *

+ 3 - 2
src/Model/LayeredNode.java

@@ -12,7 +12,8 @@ import org.eclipse.elk.graph.ElkNode;
 import View.MainView;
 
 /**
- * Die Implementation eines Knotens in einem Layered Graph
+ * Die Implementation eines Knotens in einem Layered Graph.
+ * Implementiert {@link LayeredGraphNode.}
  * 
  * @author kolja
  *
@@ -67,7 +68,7 @@ public class LayeredNode implements LayeredGraphNode {
         shift = Double.POSITIVE_INFINITY;
         xUndef = true;
     }
-    
+
     @Override
     public void setShift( double shift )
     {

+ 3 - 3
src/View/MainView.java

@@ -7,7 +7,7 @@ import java.awt.event.KeyListener;
 import javax.swing.JFrame;
 
 import Algorithms.Animated.Action;
-import Algorithms.Animated.AnnimationController;
+import Algorithms.Animated.AnimationController;
 import Algorithms.Animated.BK.BKNodePlacement;
 import IO.Writer;
 import Model.LayeredGraphEdge;
@@ -16,11 +16,11 @@ import Model.LayeredGraphNode;
 public class MainView {
 
 	public static JFrame frame;
-	AnnimationController controller;
+	AnimationController controller;
 	
 	public MainView( LayeredGraphNode graph )
 	{
-		controller = new AnnimationController();
+		controller = new AnimationController();
 		controller.setTimeBetween( 100 );
 		frame = new JFrame();
         frame.setSize( Math.min( (int)graph.getWidth() + 200, 1700 ), Math.min( (int)graph.getHeight() + 200, 900 ) );