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 |
centerMapView(@NotNull java.awt.Point centerSquare)
Centers the map view on a map square.
|
void |
closeNotify()
This function must be called when the view is closed.
|
@NotNull java.awt.Component |
getComponent()
Returns the component associated with this MapView that can be used as
parent for dialogs.
|
@NotNull javax.swing.JInternalFrame |
getInternalFrame()
Returns the
JInternalFrame instance for this map view. |
@NotNull MapControl<G,A,R> |
getMapControl()
Return the controller of this view.
|
@NotNull MapCursor<G,A,R> |
getMapCursor()
Returns the
MapCursor of this view. |
@NotNull MapGrid |
getMapGrid()
Returns the
MapGrid of this view. |
@NotNull MapRenderer |
getRenderer()
Returns the
MapRenderer for this view. |
@NotNull javax.swing.JScrollPane |
getScrollPane()
Returns the
JScrollPane of this map view. |
G |
getSelectedGameObject()
Return one selected game object.
|
@NotNull java.util.List<G> |
getSelectedGameObjects()
Return all selected game objects.
|
@NotNull java.util.List<MapSquare<G,A,R>> |
getSelectedSquares()
Returns the selected squares.
|
@NotNull java.lang.String |
getWindowTitle()
Returns the title for the map window.
|
void |
setCursorLocation(@NotNull java.awt.Point point)
Sets the cursor location.
|
void |
setViewPosition(@NotNull java.awt.Point viewPosition)
Sets the view position.
|
void setViewPosition(@NotNull @NotNull java.awt.Point viewPosition)
viewPosition
- the view position to showvoid closeNotify()
@Nullable G getSelectedGameObject()
null
if no game
object is selected@NotNull @NotNull java.util.List<G> getSelectedGameObjects()
@NotNull @NotNull java.lang.String getWindowTitle()
@NotNull @NotNull java.awt.Component getComponent()
@NotNull @NotNull MapControl<G,A,R> getMapControl()
void activate()
@NotNull @NotNull javax.swing.JInternalFrame getInternalFrame()
JInternalFrame
instance for this map view.@NotNull @NotNull java.util.List<MapSquare<G,A,R>> getSelectedSquares()
@NotNull @NotNull MapGrid getMapGrid()
MapGrid
of this view.@NotNull @NotNull MapCursor<G,A,R> getMapCursor()
MapCursor
of this view.@NotNull @NotNull MapRenderer getRenderer()
MapRenderer
for this view.@NotNull @NotNull javax.swing.JScrollPane getScrollPane()
JScrollPane
of this map view.void setCursorLocation(@NotNull @NotNull java.awt.Point point)
point
- the new location will be modified to the actually set cursor
locationvoid centerMapView(@NotNull @NotNull java.awt.Point centerSquare)
centerSquare
- the map square