 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.map.mapview;
22 import java.awt.Component;
23 import java.awt.Point;
24 import java.util.List;
25 import javax.swing.JInternalFrame;
26 import javax.swing.JScrollPane;
35 import org.jetbrains.annotations.NotNull;
36 import org.jetbrains.annotations.Nullable;
void setCursorLocation(@NotNull Point point)
Sets the cursor location.
List< G > getSelectedGameObjects()
Return all selected game objects.
MapGrid getMapGrid()
Returns the MapGrid of this view.
MapControl< G, A, R > getMapControl()
Return the controller of this view.
Base package of all Gridarta classes.
Component getComponent()
Returns the component associated with this MapView that can be used as parent for dialogs.
G getSelectedGameObject()
Return one selected game object.
Reflects a game object (object on a map).
MapRenderer getRenderer()
Returns the MapRenderer for this view.
Graphical User Interface of Gridarta.
void setViewPosition(@NotNull Point viewPosition)
Sets the view position.
MapCursor< G, A, R > getMapCursor()
Returns the MapCursor of this view.
void closeNotify()
This function must be called when the view is closed.
void activate()
Activate this map view.
GameObjects are the objects based on Archetypes found on maps.
String getWindowTitle()
Returns the title for the map window.
Interface for MapArchObjects.
A map view consists of a map grid and a map cursor, and is attached to a map control.
MapCursor provides methods to move and drag on map.
JScrollPane getScrollPane()
Returns the JScrollPane of this map view.
void centerMapView(@NotNull Point centerSquare)
Centers the map view on a map square.
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
JInternalFrame getInternalFrame()
Returns the JInternalFrame instance for this map view.
Base classes for rendering maps.
Currently nothing more than a marker interface for unification.
List< MapSquare< G, A, R > > getSelectedSquares()
Returns the selected squares.
Common interface for renderers of map control instances.