public interface MapView<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate this map view.
|
void |
closeNotify()
This function must be called when the view is closed.
|
java.awt.Component |
getComponent()
Returns the component associated with this MapView that can be used as
parent for dialogs.
|
javax.swing.JInternalFrame |
getInternalFrame()
Returns the
JInternalFrame instance for this map view. |
MapControl<G,A,R> |
getMapControl()
Return the controller of this view.
|
MapCursor<G,A,R> |
getMapCursor()
Returns the
MapCursor of this view. |
MapGrid |
getMapGrid()
Returns the
MapGrid of this view. |
MapRenderer |
getRenderer()
Returns the
MapRenderer for this view. |
javax.swing.JScrollPane |
getScrollPane()
Returns the
JScrollPane of this map view. |
G |
getSelectedGameObject()
Return one selected game object.
|
java.util.List<G> |
getSelectedGameObjects()
Return all selected game objects.
|
java.util.List<MapSquare<G,A,R>> |
getSelectedSquares()
Returns the selected squares.
|
java.lang.String |
getWindowTitle()
Returns the title for the map window.
|
void |
setCursorLocation(java.awt.Point point)
Sets the cursor location.
|
void closeNotify()
@Nullable G getSelectedGameObject()
null
if no game
object is selected@NotNull java.util.List<G> getSelectedGameObjects()
@NotNull java.lang.String getWindowTitle()
@NotNull java.awt.Component getComponent()
@NotNull MapControl<G,A,R> getMapControl()
void activate()
@NotNull javax.swing.JInternalFrame getInternalFrame()
JInternalFrame
instance for this map view.@NotNull java.util.List<MapSquare<G,A,R>> getSelectedSquares()
@NotNull MapGrid getMapGrid()
MapGrid
of this view.@NotNull MapCursor<G,A,R> getMapCursor()
MapCursor
of this view.@NotNull MapRenderer getRenderer()
MapRenderer
for this view.@NotNull javax.swing.JScrollPane getScrollPane()
JScrollPane
of this map view.void setCursorLocation(@NotNull java.awt.Point point)
point
- the new location will be modified to the actually set cursor
location