Re-organize code.

This commit is contained in:
Holt59 2018-02-25 18:13:22 +01:00
parent 29051be12b
commit 467253f9bb
9 changed files with 14 additions and 9 deletions

View File

@ -26,7 +26,7 @@ import org.insa.graph.Node;
import org.insa.graph.Point; import org.insa.graph.Point;
import org.insa.graphics.drawing.Drawing; import org.insa.graphics.drawing.Drawing;
import org.insa.graphics.drawing.DrawingClickListener; import org.insa.graphics.drawing.DrawingClickListener;
import org.insa.graphics.drawing.MarkerTracker; import org.insa.graphics.drawing.overlays.MarkerTracker;
public class NodesInputPanel extends JPanel implements DrawingClickListener { public class NodesInputPanel extends JPanel implements DrawingClickListener {

View File

@ -24,7 +24,9 @@ import org.insa.graph.Graph;
import org.insa.graph.Node; import org.insa.graph.Node;
import org.insa.graph.Path; import org.insa.graph.Path;
import org.insa.graph.Point; import org.insa.graph.Point;
import org.insa.graphics.drawing.utils.MarkerUtils; import org.insa.graphics.drawing.overlays.MarkerTracker;
import org.insa.graphics.drawing.overlays.MarkerUtils;
import org.insa.graphics.drawing.overlays.OverlayTracker;
/** /**
* Cette implementation de la classe Dessin produit vraiment un affichage (au * Cette implementation de la classe Dessin produit vraiment un affichage (au

View File

@ -5,6 +5,7 @@ import java.awt.Color;
import org.insa.graph.Graph; import org.insa.graph.Graph;
import org.insa.graph.Path; import org.insa.graph.Path;
import org.insa.graph.Point; import org.insa.graph.Point;
import org.insa.graphics.drawing.overlays.MarkerTracker;
public interface Drawing { public interface Drawing {

View File

@ -14,8 +14,10 @@ import org.insa.graph.Arc;
import org.insa.graph.Graph; import org.insa.graph.Graph;
import org.insa.graph.Path; import org.insa.graph.Path;
import org.insa.graph.Point; import org.insa.graph.Point;
import org.insa.graphics.drawing.utils.MarkerUtils; import org.insa.graphics.drawing.overlays.MarkerTracker;
import org.insa.graphics.drawing.utils.PolylineAutoScaling; import org.insa.graphics.drawing.overlays.MarkerUtils;
import org.insa.graphics.drawing.overlays.OverlayTracker;
import org.insa.graphics.drawing.overlays.PolylineAutoScaling;
import org.mapsforge.core.graphics.Bitmap; import org.mapsforge.core.graphics.Bitmap;
import org.mapsforge.core.graphics.GraphicFactory; import org.mapsforge.core.graphics.GraphicFactory;
import org.mapsforge.core.model.BoundingBox; import org.mapsforge.core.model.BoundingBox;

View File

@ -1,4 +1,4 @@
package org.insa.graphics.drawing; package org.insa.graphics.drawing.overlays;
import org.insa.graph.Point; import org.insa.graph.Point;

View File

@ -1,4 +1,4 @@
package org.insa.graphics.drawing.utils; package org.insa.graphics.drawing.overlays;
import java.awt.Color; import java.awt.Color;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;

View File

@ -1,4 +1,4 @@
package org.insa.graphics.drawing; package org.insa.graphics.drawing.overlays;
public interface OverlayTracker { public interface OverlayTracker {

View File

@ -1,4 +1,4 @@
package org.insa.graphics.drawing.utils; package org.insa.graphics.drawing.overlays;
import java.awt.Color; import java.awt.Color;

View File

@ -1,4 +1,4 @@
package org.insa.graphics.drawing.utils; package org.insa.graphics.drawing.overlays;
import java.awt.Color; import java.awt.Color;
import java.util.List; import java.util.List;