 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.map.mapview;
22 import java.util.HashMap;
38 import org.jetbrains.annotations.NotNull;
39 import org.jetbrains.annotations.Nullable;
80 public void mapSizeChanged(@NotNull
final Size2D newSize) {
90 public void mapObjectsChanged(@NotNull
final Set<G> gameObjects, @NotNull
final Set<G> transientGameObjects) {
100 public void mapFileChanged(@Nullable
final MapFile oldMapFile) {
105 public void modifiedChanged() {
147 for (
final G gameObject : validationError.getGameObjects()) {
A MapModel reflects the data of a map.
void endTransaction()
Ends a transaction.
Tracks a MapModel for changed erroneous map squares and updates a MapGrid and an AbstractMapRenderer ...
Base package of all Gridarta classes.
int getMapX()
Returns the X coordinate of this GameObject on its map.
void setErroneousMapSquares(@NotNull final Map< MapSquare< G, A, R >, ValidationError< G, A, R >> erroneousMapSquares)
Sets the MapSquares that are known to contain errors.
Super class of all errors that could occur during map validation.
final MapGrid mapGrid
The MapGrid to mark.
void clearErrors()
Clears all error flags.
Reflects a game object (object on a map).
ErroneousMapSquares(@NotNull final MapModel< G, A, R > mapModel, @NotNull final MapGrid mapGrid, @NotNull final AbstractMapRenderer< G, A, R > renderer)
Creates a new instance.
Graphical User Interface of Gridarta.
void beginTransaction()
Starts a new transaction.
Abstract base class for classes implementing MapRenderer.
GameObjects are the objects based on Archetypes found on maps.
void removeMapModelListener(@NotNull MapModelListener< G, A, R > listener)
Unregister a map listener.
Interface for MapArchObjects.
An interface for classes that collect errors.
This package contains the framework for validating maps.
final AbstractMapRenderer< G, A, R > renderer
The AbstractMapRenderer to notify.
The location of a map file with a map directory.
final MapModelListener< G, A, R > mapModelListener
The MapModelListener attached to mapModel.
Interface for listeners listening on MapModel events.
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
int getMapY()
Returns the Y coordinate of this GameObject on its map.
Base classes for rendering maps.
void resize(@NotNull final Size2D newSize)
Resizes the MapGrid.
void closeNotify()
Must be called when this instance is not used anymore.
void setError(final int x, final int y)
Sets the error flag at given coordinates.
final Map< MapSquare< G, A, R >, ValidationError< G, A, R > > erroneousMapSquares
The erroneous MapSquares.
void errorsChanged(@NotNull final ErrorCollector< G, A, R > errors)
Updates the erroneous map squares.
final MapModel< G, A, R > mapModel
The MapModel to track.
The class Size2D represents a 2d rectangular area.