From 01022778219df30ebb962f121f202444805b9217 Mon Sep 17 00:00:00 2001 From: Holt59 Date: Mon, 5 Mar 2018 21:46:01 +0100 Subject: [PATCH] Update default path color in BasicDrawing. --- .../insa/graphics/drawing/components/BasicDrawing.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/org/insa/graphics/drawing/components/BasicDrawing.java b/src/main/org/insa/graphics/drawing/components/BasicDrawing.java index e249179..39d25cc 100644 --- a/src/main/org/insa/graphics/drawing/components/BasicDrawing.java +++ b/src/main/org/insa/graphics/drawing/components/BasicDrawing.java @@ -286,7 +286,7 @@ public class BasicDrawing extends JPanel implements Drawing { } // Default path color. - public static final Color DEFAULT_PATH_COLOR = new Color(255, 0, 255); + public static final Color DEFAULT_PATH_COLOR = new Color(66, 134, 244); // Default palette. public static final GraphPalette DEFAULT_PALETTE = new BasicGraphPalette(); @@ -299,6 +299,8 @@ public class BasicDrawing extends JPanel implements Drawing { // Width and height of the image private int width, height; + // Zoom controls + private MapZoomControls zoomControls; private ZoomAndPanListener zoomAndPanListener; // @@ -312,9 +314,6 @@ public class BasicDrawing extends JPanel implements Drawing { // Mapping DrawingClickListener -> MouseEventListener private List drawingClickListeners = new ArrayList<>(); - // Zoom controls - private MapZoomControls zoomControls; - /** * Create a new BasicDrawing. * @@ -489,7 +488,7 @@ public class BasicDrawing extends JPanel implements Drawing { * * @param arc Arc to draw. * @param palette Palette to use to retrieve color and width for arc, or null to - * use current settings. + * use current settings. */ protected void drawArc(ArcForward arc, GraphPalette palette, boolean repaint) { List pts = arc.getPoints();