20 package net.sf.gridarta.gui.map.renderer;
22 import java.awt.Point;
23 import java.awt.event.MouseEvent;
25 import java.io.IOException;
26 import java.util.Collections;
27 import java.util.HashMap;
29 import javax.imageio.ImageIO;
30 import javax.swing.JComponent;
38 import org.jetbrains.annotations.NotNull;
39 import org.jetbrains.annotations.Nullable;
125 for (
final G gameObject : mapSquare.
reverse()) {
133 return toolTipAppender.
finish();
138 if (this.lightVisible == lightVisible) {
void setErroneousMapSquares(@NotNull final Map< MapSquare< G, A, R >, ValidationError< G, A, R >> erroneousMapSquares)
Sets the MapSquares that are known to contain errors.
Iterable< G > reverse()
Return an object that is the reverse representation.
Map< MapSquare< G, A, R >, ValidationError< G, A, R > > erroneousMapSquares
The MapSquares that are known to contain errors.
A MapModel reflects the data of a map.
void setLightVisible(final boolean lightVisible)
If set, inverts the setting of net.sf.gridarta.model.mapviewsettings.MapViewSettings#isLightVisible()...
Reading and writing of maps, handling of paths.
BufferedImage getFullImage()
Returns an image of the entire map view.
void printFullImage(@NotNull final File file)
Saves an image of the entire view to a file.
This package contains the framework for validating maps.
final MapModel< G, A, R > mapModel
The rendered MapModel.
boolean lightVisible
Whether the setting for lighted map squares is inverted.
Interface for classes that read or write GameObject instances.
Super class of all errors that could occur during map validation.
Base package of all Gridarta classes.
Abstract base class for classes implementing MapRenderer.
Reflects a game object (object on a map).
AbstractMapRenderer(@NotNull final MapModel< G, A, R > mapModel, @Nullable final GameObjectParser< G, A, R > gameObjectParser)
Creates a new instance.
final Point tmpPoint
Used to avoid creation millions of points.
abstract void closeNotify()
Must be called when this renderer is not used anymore.
MapSquare< G, A, R > getMapSquare(@NotNull Point pos)
Get the square at a specified location.
GameObjects are the objects based on Archetypes found on maps.
String getToolTipText(@NotNull final MouseEvent event)
RefusedBequest
final GameObjectParser< G, A, R > gameObjectParser
The GameObjectParser for creating tooltip information or.
boolean getSquareLocationAt(@NotNull Point point, @NotNull Point retPoint)
Returns the map location at the given point.
boolean isLightVisible()
Returns whether the setting for lighted map squares should be inverted.
Common interface for renderers of map control instances.
void forceRepaint()
Repaint the view because some view parameters may have changed.
static final long serialVersionUID
The serial version UID.
Interface for MapArchObjects.