Gridarta Editor
net.sf.gridarta.gui.map.mapview.TestMapView Class Reference

A MapView implementation for regression tests. More...

+ Inheritance diagram for net.sf.gridarta.gui.map.mapview.TestMapView:
+ Collaboration diagram for net.sf.gridarta.gui.map.mapview.TestMapView:

Public Member Functions

void activate ()
 
Component getComponent ()
 
JInternalFrame getInternalFrame ()
 
MapControl< TestGameObject, TestMapArchObject, TestArchetypegetMapControl ()
 
MapRenderer getRenderer ()
 
JScrollPane getScrollPane ()
 
String getWindowTitle ()
 
void setViewPosition (@NotNull final Point viewPosition)
 
 TestMapView (@NotNull final MapControl< TestGameObject, TestMapArchObject, TestArchetype > mapControl, @NotNull final MapGrid mapGrid, @NotNull final MapCursor< TestGameObject, TestMapArchObject, TestArchetype > mapCursor)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.gui.map.mapview.AbstractMapView< TestGameObject, TestMapArchObject, TestArchetype >
void centerMapView ( @NotNull final Point centerSquare)
 
void closeNotify ()
 
MapCursor< G, A, R > getMapCursor ()
 
MapGrid getMapGrid ()
 
getSelectedGameObject ()
 
List< G > getSelectedGameObjects ()
 
List< MapSquare< G, A, R > > getSelectedSquares ()
 
void setCursorLocation ( @NotNull final Point point)
 

Private Attributes

final MapControl< TestGameObject, TestMapArchObject, TestArchetypemapControl
 The controller of this view. More...
 

Additional Inherited Members

- Protected Member Functions inherited from net.sf.gridarta.gui.map.mapview.AbstractMapView< TestGameObject, TestMapArchObject, TestArchetype >
 AbstractMapView ( @NotNull final MapModel< G, A, R > mapModel, @NotNull final MapGrid mapGrid, @NotNull final MapCursor< G, A, R > mapCursor)
 Creates a new instance. More...
 

Detailed Description

A MapView implementation for regression tests.

Author
Andreas Kirschbaum

Definition at line 39 of file TestMapView.java.

Constructor & Destructor Documentation

◆ TestMapView()

net.sf.gridarta.gui.map.mapview.TestMapView.TestMapView ( @NotNull final MapControl< TestGameObject, TestMapArchObject, TestArchetype mapControl,
@NotNull final MapGrid  mapGrid,
@NotNull final MapCursor< TestGameObject, TestMapArchObject, TestArchetype mapCursor 
)

Creates a new instance.

Parameters
mapControlthe controller of this view
mapGridthe map grid for this map view
mapCursorthe map cursor for this map view

Definition at line 53 of file TestMapView.java.

References net.sf.gridarta.gui.map.mapview.TestMapView.mapControl, net.sf.gridarta.gui.map.mapview.AbstractMapView< TestGameObject, TestMapArchObject, TestArchetype >.mapCursor, and net.sf.gridarta.gui.map.mapview.AbstractMapView< TestGameObject, TestMapArchObject, TestArchetype >.mapGrid.

Member Function Documentation

◆ activate()

void net.sf.gridarta.gui.map.mapview.TestMapView.activate ( )

Definition at line 82 of file TestMapView.java.

◆ getComponent()

Component net.sf.gridarta.gui.map.mapview.TestMapView.getComponent ( )

Definition at line 71 of file TestMapView.java.

◆ getInternalFrame()

JInternalFrame net.sf.gridarta.gui.map.mapview.TestMapView.getInternalFrame ( )

Definition at line 87 of file TestMapView.java.

◆ getMapControl()

MapControl<TestGameObject, TestMapArchObject, TestArchetype> net.sf.gridarta.gui.map.mapview.TestMapView.getMapControl ( )

◆ getRenderer()

MapRenderer net.sf.gridarta.gui.map.mapview.TestMapView.getRenderer ( )

Definition at line 93 of file TestMapView.java.

◆ getScrollPane()

JScrollPane net.sf.gridarta.gui.map.mapview.TestMapView.getScrollPane ( )

Definition at line 99 of file TestMapView.java.

◆ getWindowTitle()

String net.sf.gridarta.gui.map.mapview.TestMapView.getWindowTitle ( )

Definition at line 65 of file TestMapView.java.

◆ setViewPosition()

void net.sf.gridarta.gui.map.mapview.TestMapView.setViewPosition ( @NotNull final Point  viewPosition)

Definition at line 59 of file TestMapView.java.

Member Data Documentation

◆ mapControl

final MapControl<TestGameObject, TestMapArchObject, TestArchetype> net.sf.gridarta.gui.map.mapview.TestMapView.mapControl
private

The documentation for this class was generated from the following file: