net.sf.gridarta.gui.map.mapview
public class TestMapView extends AbstractMapView<TestGameObject,TestMapArchObject,TestArchetype>
MapView
implementation for regression tests.Modifier and Type | Field and Description |
---|---|
private MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
mapControl
The controller of this view.
|
Constructor and Description |
---|
TestMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
MapGrid mapGrid,
MapCursor<TestGameObject,TestMapArchObject,TestArchetype> mapCursor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate this map view.
|
void |
closeNotify()
This function must be called when the view is closed.
|
Component |
getComponent()
Returns the component associated with this MapView that can be used as
parent for dialogs.
|
JInternalFrame |
getInternalFrame()
Returns the
JInternalFrame instance for this map view. |
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
getMapControl()
Return the controller of this view.
|
MapRenderer |
getRenderer()
Returns the
MapRenderer for this view. |
JScrollPane |
getScrollPane()
Returns the
JScrollPane of this map view. |
String |
getWindowTitle()
Returns the title for the map window.
|
getMapCursor, getMapGrid, getSelectedGameObject, getSelectedGameObjects, getSelectedSquares, setCursorLocation
@NotNull private final MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl
public TestMapView(@NotNull MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl, @NotNull MapGrid mapGrid, @NotNull MapCursor<TestGameObject,TestMapArchObject,TestArchetype> mapCursor)
mapControl
- the controller of this viewmapGrid
- the map grid for this map viewmapCursor
- the map cursor for this map viewpublic void closeNotify()
@NotNull public String getWindowTitle()
@NotNull public Component getComponent()
@NotNull public MapControl<TestGameObject,TestMapArchObject,TestArchetype> getMapControl()
public void activate()
@NotNull public JInternalFrame getInternalFrame()
JInternalFrame
instance for this map view.@NotNull public MapRenderer getRenderer()
MapRenderer
for this view.@NotNull public JScrollPane getScrollPane()
JScrollPane
of this map view.Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.