|
@@ -2,7 +2,6 @@ package ui.view;
|
|
|
|
|
|
import java.awt.BasicStroke;
|
|
import java.awt.BasicStroke;
|
|
import java.awt.Color;
|
|
import java.awt.Color;
|
|
-import java.awt.Dimension;
|
|
|
|
import java.awt.Graphics;
|
|
import java.awt.Graphics;
|
|
import java.awt.Graphics2D;
|
|
import java.awt.Graphics2D;
|
|
import java.awt.Image;
|
|
import java.awt.Image;
|
|
@@ -10,9 +9,6 @@ import java.awt.Point;
|
|
import java.awt.RenderingHints;
|
|
import java.awt.RenderingHints;
|
|
import java.awt.event.ActionEvent;
|
|
import java.awt.event.ActionEvent;
|
|
import java.awt.event.ActionListener;
|
|
import java.awt.event.ActionListener;
|
|
-import java.awt.event.ComponentAdapter;
|
|
|
|
-import java.awt.event.ComponentEvent;
|
|
|
|
-import java.awt.event.ComponentListener;
|
|
|
|
import java.awt.event.MouseEvent;
|
|
import java.awt.event.MouseEvent;
|
|
import java.awt.event.MouseListener;
|
|
import java.awt.event.MouseListener;
|
|
import java.awt.event.MouseMotionListener;
|
|
import java.awt.event.MouseMotionListener;
|
|
@@ -24,7 +20,6 @@ import java.util.Timer;
|
|
import java.util.TimerTask;
|
|
import java.util.TimerTask;
|
|
|
|
|
|
import javax.swing.ImageIcon;
|
|
import javax.swing.ImageIcon;
|
|
-import javax.swing.JLabel;
|
|
|
|
import javax.swing.JMenuItem;
|
|
import javax.swing.JMenuItem;
|
|
import javax.swing.JPanel;
|
|
import javax.swing.JPanel;
|
|
import javax.swing.JPopupMenu;
|
|
import javax.swing.JPopupMenu;
|
|
@@ -201,12 +196,9 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
controller.addUpperNode("NodeOfNode", null, animCps);
|
|
controller.addUpperNode("NodeOfNode", null, animCps);
|
|
controller.calculateStateForCurrentTimeStep();
|
|
controller.calculateStateForCurrentTimeStep();
|
|
repaint();
|
|
repaint();
|
|
- elapsedTime = System.currentTimeMillis() - start;
|
|
|
|
- controller.addTextToConsole(elapsedTime + "");
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- start = System.currentTimeMillis();
|
|
|
|
animT.start();
|
|
animT.start();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -265,12 +257,9 @@ public class MyCanvas extends JPanel implements MouseListener, MouseMotionListen
|
|
|
|
|
|
controller.calculateStateForCurrentTimeStep();
|
|
controller.calculateStateForCurrentTimeStep();
|
|
repaint();
|
|
repaint();
|
|
- elapsedTime = System.currentTimeMillis() - start;
|
|
|
|
- controller.addTextToConsole(elapsedTime + "");
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- start = System.currentTimeMillis();
|
|
|
|
animT.start();
|
|
animT.start();
|
|
}
|
|
}
|
|
});
|
|
});
|