From bc477506342411e9156b3230d847cb92bcb8e5f9 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 24 Nov 2015 11:11:17 +0100 Subject: Reformat code --- src/ch/epfl/maze/graphics/Display.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/ch/epfl/maze/graphics/Display.java') diff --git a/src/ch/epfl/maze/graphics/Display.java b/src/ch/epfl/maze/graphics/Display.java index 2fddcf1..baacefa 100644 --- a/src/ch/epfl/maze/graphics/Display.java +++ b/src/ch/epfl/maze/graphics/Display.java @@ -17,7 +17,6 @@ import java.util.Map; /** * Handles the display of a {@code Simulation} on a window. */ - public final class Display implements Runnable { /* constants */ @@ -58,7 +57,6 @@ public final class Display implements Runnable { * * @param simulation A {@code Simulation} to display */ - public Display(Simulation simulation) { // sanity check if (simulation == null) { @@ -124,7 +122,6 @@ public final class Display implements Runnable { * * @param debug The new debug value */ - public void setDebug(boolean debug) { mDebug = debug; mShowGrid = debug; @@ -135,7 +132,6 @@ public final class Display implements Runnable { /** * Creates frame window. */ - private void createWindow() { // actual window mFrame = new JFrame("Maze solver simulation"); @@ -163,7 +159,6 @@ public final class Display implements Runnable { /** * Creates canvas. */ - private void createCanvas() { // actual canvas mCanvas = new Canvas(); @@ -183,7 +178,6 @@ public final class Display implements Runnable { /** * Creates menu. */ - private void createMenu() { // creates menu bar mMenuBar = new JMenuBar(); @@ -371,7 +365,6 @@ public final class Display implements Runnable { * * @param g The graphics on which the labyrinth will be drawn */ - private void drawLabyrinth(Graphics2D g) { World world = mSimulation.getWorld(); @@ -405,7 +398,6 @@ public final class Display implements Runnable { * @param width Width of graphics * @param height Height of graphics */ - private void drawAnimation(float dt, Graphics2D g, int width, int height) { // clears background g.setColor(BACKGROUND_COLOR); @@ -448,7 +440,6 @@ public final class Display implements Runnable { * * @param dt The elapsed time between two frames */ - private void animate(float dt) { Graphics2D g = null; try { @@ -475,7 +466,6 @@ public final class Display implements Runnable { /** * Runs the animation main loop. */ - private void mainLoop() { long before = System.nanoTime(); while (mRunning) { @@ -508,7 +498,6 @@ public final class Display implements Runnable { /** * Computes the {@code Simulation}'s next move. */ - private void nextMove() { synchronized (mLock) { if (mRunning) { @@ -516,4 +505,5 @@ public final class Display implements Runnable { } } } + } -- cgit v1.2.3