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-2023 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 java.awt.Point;
24 import javax.swing.JInternalFrame;
25 import javax.swing.JScrollPane;
33 import org.jetbrains.annotations.NotNull;
34 
39 public class TestMapView extends AbstractMapView<TestGameObject, TestMapArchObject, TestArchetype> {
40 
44  @NotNull
46 
54  super(mapControl.getMapModel(), mapGrid, mapCursor);
55  this.mapControl = mapControl;
56  }
57 
58  @Override
59  public void setViewPosition(@NotNull final Point viewPosition) {
60  throw new AssertionError();
61  }
62 
63  @NotNull
64  @Override
65  public String getWindowTitle() {
66  return "title";
67  }
68 
69  @NotNull
70  @Override
71  public Component getComponent() {
72  throw new AssertionError();
73  }
74 
75  @NotNull
76  @Override
78  return mapControl;
79  }
80 
81  @Override
82  public void activate() {
83  }
84 
85  @NotNull
86  @Override
87  public JInternalFrame getInternalFrame() {
88  throw new AssertionError();
89  }
90 
91  @NotNull
92  @Override
94  throw new AssertionError();
95  }
96 
97  @NotNull
98  @Override
99  public JScrollPane getScrollPane() {
100  throw new AssertionError();
101  }
102 
103 }
net.sf.gridarta.model.archetype.TestArchetype
An Archetype implementation for testing purposes.
Definition: TestArchetype.java:30
net.sf.gridarta.gui.map.mapview.AbstractMapView< TestGameObject, TestMapArchObject, TestArchetype >::mapGrid
final MapGrid mapGrid
The MapGrid of this map view.
Definition: AbstractMapView.java:61
net.sf.gridarta.gui.map.mapview.TestMapView.setViewPosition
void setViewPosition(@NotNull final Point viewPosition)
Definition: TestMapView.java:59
net.sf.gridarta.gui.map.mapview.TestMapView.getRenderer
MapRenderer getRenderer()
Definition: TestMapView.java:93
net.sf.gridarta.gui.map.mapview.TestMapView.getInternalFrame
JInternalFrame getInternalFrame()
Definition: TestMapView.java:87
net.sf.gridarta.gui.map.mapview.TestMapView.activate
void activate()
Definition: TestMapView.java:82
net.sf.gridarta
Base package of all Gridarta classes.
net.sf.gridarta.gui.map.mapview.TestMapView.getWindowTitle
String getWindowTitle()
Definition: TestMapView.java:65
net.sf.gridarta.model.gameobject.TestGameObject
A GameObject implementation for testing purposes.
Definition: TestGameObject.java:34
net.sf
net.sf.gridarta.gui.map.renderer
Definition: AbstractIsoMapRenderer.java:20
net.sf.gridarta.model.archetype
Definition: AbstractArchetype.java:20
net.sf.gridarta.model.mapcontrol
Definition: DefaultMapControl.java:20
net.sf.gridarta.gui
Graphical User Interface of Gridarta.
net.sf.gridarta.model.gameobject
GameObjects are the objects based on Archetypes found on maps.
Definition: AbstractGameObject.java:20
net
net.sf.gridarta.gui.map.mapview.TestMapView.TestMapView
TestMapView(@NotNull final MapControl< TestGameObject, TestMapArchObject, TestArchetype > mapControl, @NotNull final MapGrid mapGrid, @NotNull final MapCursor< TestGameObject, TestMapArchObject, TestArchetype > mapCursor)
Creates a new instance.
Definition: TestMapView.java:53
net.sf.gridarta.model.mapcursor.MapCursor
MapCursor provides methods to move and drag on map.
Definition: MapCursor.java:58
net.sf.gridarta.model.mapgrid.MapGrid
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
Definition: MapGrid.java:46
net.sf.gridarta.gui.map.mapview.TestMapView
A MapView implementation for regression tests.
Definition: TestMapView.java:39
net.sf.gridarta.model.mapgrid
Definition: MapGrid.java:20
net.sf.gridarta.gui.map.mapview.TestMapView.getMapControl
MapControl< TestGameObject, TestMapArchObject, TestArchetype > getMapControl()
Definition: TestMapView.java:77
net.sf.gridarta.model
net.sf.gridarta.gui.map
Base classes for rendering maps.
Definition: AbstractPerMapDialogManager.java:20
net.sf.gridarta.gui.map.mapview.TestMapView.mapControl
final MapControl< TestGameObject, TestMapArchObject, TestArchetype > mapControl
The controller of this view.
Definition: TestMapView.java:45
net.sf.gridarta.gui.map.mapview.AbstractMapView
Abstract base class for MapView implementations.
Definition: AbstractMapView.java:49
net.sf.gridarta.model.mapcontrol.MapControl
Currently nothing more than a marker interface for unification.
Definition: MapControl.java:35
net.sf.gridarta.model.maparchobject.TestMapArchObject
A MapArchObject implementation for testing purposes.
Definition: TestMapArchObject.java:28
net.sf.gridarta.model.maparchobject
Definition: AbstractMapArchObject.java:20
net.sf.gridarta.gui.map.mapview.TestMapView.getComponent
Component getComponent()
Definition: TestMapView.java:71
net.sf.gridarta.gui.map.renderer.MapRenderer
Common interface for renderers of map control instances.
Definition: MapRenderer.java:36
net.sf.gridarta.model.mapcursor
Definition: MapCursor.java:20
net.sf.gridarta.gui.map.mapview.TestMapView.getScrollPane
JScrollPane getScrollPane()
Definition: TestMapView.java:99
net.sf.gridarta.gui.map.mapview.AbstractMapView< TestGameObject, TestMapArchObject, TestArchetype >::mapCursor
final MapCursor< G, A, R > mapCursor
The MapCursor of this map view.
Definition: AbstractMapView.java:67