 |
Gridarta Editor
|
Go to the documentation of this file.
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();
abstract void closeNotify()
Must be called when this renderer is not used anymore.
A MapModel reflects the data of a map.
String getToolTipText(@NotNull final MouseEvent event)
@noinspection RefusedBequest
void setLightVisible(final boolean lightVisible)
If set, inverts the setting of net.sf.gridarta.model.mapviewsettings.MapViewSettings#isLightVisible()...
Map< MapSquare< G, A, R >, ValidationError< G, A, R > > erroneousMapSquares
The MapSquares that are known to contain errors.
Base package of all Gridarta classes.
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.
boolean lightVisible
Whether the setting for lighted map squares is inverted.
final MapModel< G, A, R > mapModel
The rendered MapModel.
Reflects a game object (object on a map).
Abstract base class for classes implementing MapRenderer.
final GameObjectParser< G, A, R > gameObjectParser
The GameObjectParser for creating tooltip information or.
GameObjects are the objects based on Archetypes found on maps.
boolean isLightVisible()
Returns whether the setting for lighted map squares should be inverted.
void forceRepaint()
Repaint the view because some view parameters may have changed.
transient Iterable< G > reverse
Iterable implementation for reverse traversal.
Interface for MapArchObjects.
void printFullImage(@NotNull final File file)
Saves an image of the entire view to a file.
This package contains the framework for validating maps.
AbstractMapRenderer(@NotNull final MapModel< G, A, R > mapModel, @Nullable final GameObjectParser< G, A, R > gameObjectParser)
Creates a new instance.
Reading and writing of maps, handling of paths.
final Point tmpPoint
Used to avoid creation millions of points.
MapSquare< G, A, R > getMapSquare(@NotNull Point pos)
Get the square at a specified location.
static final long serialVersionUID
The serial version UID.
BufferedImage getFullImage()
Returns an image of the entire map view.
Interface for classes that read or write GameObject instances.
Common interface for renderers of map control instances.
boolean getSquareLocationAt(@NotNull Point point, @NotNull Point retPoint)
Returns the map location at the given point.