浏览代码

more javadoc

Eren Yilmaz 7 年之前
父节点
当前提交
fcaa0dbc0d
共有 2 个文件被更改,包括 17 次插入5 次删除
  1. 12 1
      src/View/MainView.java
  2. 5 4
      src/View/NodeView.java

+ 12 - 1
src/View/MainView.java

@@ -13,11 +13,22 @@ import IO.Writer;
 import Model.LayeredGraphEdge;
 import Model.LayeredGraphNode;
 
+/**
+ * The main window of the application.
+ * @author kolja
+ *
+ */
 public class MainView {
-
+    /**
+     * The 'frame' of the main window.
+     */
 	public static JFrame frame;
 	AnimationController controller;
 	
+	/**
+	 * Initialize the window and its contents.
+	 * @param graph the graph that is displayed in this window.
+	 */
 	public MainView( LayeredGraphNode graph )
 	{
 		controller = new AnimationController();

+ 5 - 4
src/View/NodeView.java

@@ -10,11 +10,12 @@ import javax.swing.*;
 
 import Model.LayeredGraphNode;
 
+/**
+ * A drawable representation of a node.
+ * @author kolja
+ *
+ */
 public class NodeView extends JPanel {
-
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 1L;
 	private LayeredGraphNode model;