Browse Source

Remove useless method in interfaces.

Holt59 3 years ago
parent
commit
9e8457337e

+ 2
- 0
src/main/org/insa/graphics/MainWindow.java View File

@@ -338,11 +338,13 @@ public class MainWindow extends JFrame {
338 338
 
339 339
         setJMenuBar(createMenuBar(openMapActionListener));
340 340
 
341
+        // Initial panel to show "Open Map... "
341 342
         JPanel openPanel = new JPanel();
342 343
         openPanel.setLayout(new BoxLayout(openPanel, BoxLayout.PAGE_AXIS));
343 344
         JButton openButton = new JButton("Open Map... ");
344 345
         openButton.setAlignmentX(Component.CENTER_ALIGNMENT);
345 346
         openButton.addActionListener(openMapActionListener);
347
+        openButton.setFocusPainted(false);
346 348
         openPanel.add(Box.createVerticalGlue());
347 349
         openPanel.add(openButton);
348 350
         openPanel.add(Box.createVerticalGlue());

+ 0
- 10
src/main/org/insa/graphics/drawing/BasicGraphPalette.java View File

@@ -14,16 +14,6 @@ public class BasicGraphPalette implements GraphPalette {
14 14
     private static final Color COASTLINE_COLOR = Color.BLUE;
15 15
 
16 16
     @Override
17
-    public int getDefaultPointWidth() {
18
-        return 2;
19
-    }
20
-
21
-    @Override
22
-    public Color getDefaultPointColor() {
23
-        return Color.GREEN;
24
-    }
25
-
26
-    @Override
27 17
     public Color getColorForArc(Arc arc) {
28 18
         RoadType type = arc.getRoadInformation().getType();
29 19
         switch (type) {

+ 0
- 5
src/main/org/insa/graphics/drawing/BlackAndWhiteGraphPalette.java View File

@@ -11,11 +11,6 @@ public class BlackAndWhiteGraphPalette extends BasicGraphPalette {
11 11
             new Color(80, 80, 80), new Color(40, 40, 40), new Color(30, 30, 30) };
12 12
 
13 13
     @Override
14
-    public Color getDefaultPointColor() {
15
-        return Color.BLACK;
16
-    }
17
-
18
-    @Override
19 14
     public Color getColorForArc(Arc arc) {
20 15
         int width = getWidthForArc(arc);
21 16
         return ROAD_COLOR_FROM_WIDTH[width];

+ 0
- 10
src/main/org/insa/graphics/drawing/GraphPalette.java View File

@@ -7,16 +7,6 @@ import org.insa.graph.Arc;
7 7
 public interface GraphPalette {
8 8
 
9 9
     /**
10
-     * @return The default point width for this palette.
11
-     */
12
-    public int getDefaultPointWidth();
13
-
14
-    /**
15
-     * @return The default point color for this palette.
16
-     */
17
-    public Color getDefaultPointColor();
18
-
19
-    /**
20 10
      * @param arc Arc for which color should be retrieved.
21 11
      * 
22 12
      * @return Color associated with the given arc.

Loading…
Cancel
Save