 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.map.mapview;
22 import java.util.ArrayList;
23 import java.util.Collection;
24 import java.util.Collections;
25 import java.util.Iterator;
26 import java.util.List;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
45 private final List<MapView<G, A, R>>
mapViewsList = Collections.synchronizedList(
new ArrayList<>());
57 private final Collection<MapViewManagerListener<G, A, R>>
listeners =
new ArrayList<>();
83 listener.mapViewClosing(mapView);
97 listener.mapViewCreated(mapView);
134 return Collections.unmodifiableList(
mapViewsList).iterator();
void deactivateMapView(@NotNull final MapView< G, A, R > mapView)
Deactivates a map view.
final List< MapView< G, A, R > > mapViewsList
All open map views as a list.
Base package of all Gridarta classes.
boolean doNextWindow(final boolean performAction)
Executes the "next window" action.
Reflects a game object (object on a map).
Iterator< MapView< G, A, R > > iterator()
Returns all opened map views.
void addMapView(@NotNull final MapView< G, A, R > mapView)
Adds a map view.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
void setActiveMapView(@NotNull final MapView< G, A, R > mapView)
Sets the active map view.
void updateActiveMapView()
Updates the active map view and notifies all listeners of changes.
MapView< G, A, R > getActiveMapView()
Returns the active top map view we are working with.
boolean doPrevWindow(final boolean performAction)
Executes the "prev window" action.
void activateMapView(@NotNull final MapView< G, A, R > mapView)
Activates a map view.
void removeMapViewManagerListener(@NotNull final MapViewManagerListener< G, A, R > listener)
Removes a listener to be notified.
void addMapViewManagerListener(@NotNull final MapViewManagerListener< G, A, R > listener)
Adds a listener to be notified.
MapView< G, A, R > activeMapView
The active map view.
final Collection< MapViewManagerListener< G, A, R > > listeners
The registered MapViewManagerListeners.
void removeMapView(@NotNull final MapView< G, A, R > mapView)
Removes a map view.