Gridarta Editor
TestMapView.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2015 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.gui.map.mapview;
21 
22 import java.awt.Component;
23 import javax.swing.JInternalFrame;
24 import javax.swing.JScrollPane;
32 import org.jetbrains.annotations.NotNull;
33 
38 public class TestMapView extends AbstractMapView<TestGameObject, TestMapArchObject, TestArchetype> {
39 
43  @NotNull
45 
53  super(mapControl.getMapModel(), mapGrid, mapCursor);
54  this.mapControl = mapControl;
55  }
56 
57  @Override
58  public void closeNotify() {
59  }
60 
61  @NotNull
62  @Override
63  public String getWindowTitle() {
64  return "title";
65  }
66 
67  @NotNull
68  @Override
69  public Component getComponent() {
70  throw new AssertionError();
71  }
72 
73  @NotNull
74  @Override
76  return mapControl;
77  }
78 
79  @Override
80  public void activate() {
81  }
82 
83  @NotNull
84  @Override
85  public JInternalFrame getInternalFrame() {
86  throw new AssertionError();
87  }
88 
89  @NotNull
90  @Override
92  throw new AssertionError();
93  }
94 
95  @NotNull
96  @Override
97  public JScrollPane getScrollPane() {
98  throw new AssertionError();
99  }
100 
101 }
Graphical User Interface of Gridarta.
MapCursor provides methods to move and drag on map.
Definition: MapCursor.java:57
A MapArchObject implementation for testing purposes.
TestMapView(@NotNull final MapControl< TestGameObject, TestMapArchObject, TestArchetype > mapControl, @NotNull final MapGrid mapGrid, @NotNull final MapCursor< TestGameObject, TestMapArchObject, TestArchetype > mapCursor)
Creates a new instance.
Base package of all Gridarta classes.
GameObjects are the objects based on Archetypes found on maps.
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
Definition: MapGrid.java:45
final MapControl< TestGameObject, TestMapArchObject, TestArchetype > mapControl
The controller of this view.
Base classes for rendering maps.
Abstract base class for MapView implementations.
Currently nothing more than a marker interface for unification.
Definition: MapControl.java:35
An Archetype implementation for testing purposes.
A GameObject implementation for testing purposes.
Common interface for renderers of map control instances.
MapControl< TestGameObject, TestMapArchObject, TestArchetype > getMapControl()
A MapView implementation for regression tests.