20 package net.sf.gridarta.var.crossfire.gui.map.renderer;
22 import java.awt.Dimension;
23 import java.awt.Graphics;
24 import java.awt.Point;
25 import java.awt.Rectangle;
26 import javax.swing.ImageIcon;
39 import org.jetbrains.annotations.NotNull;
62 super(mapViewSettings, mapModel, mapGrid, 0, gridMapSquarePainter, gameObjectParser);
93 g.setColor(getBackground());
95 if (square.isEmpty()) {
100 final ImageIcon img = node.getNormalImage();
void paintComponent(@NotNull final Graphics g)
This is the default renderer of a map.
A MapModel reflects the data of a map.
Graphical User Interface of Gridarta.
Reading and writing of maps, handling of paths.
A AbstractFlatMapRenderer to render map files.
final MapModel< GameObject, MapArchObject, Archetype > mapModel
The MapModel to render.
int SQUARE_HEIGHT
The height of a square in pixels.
MapArchObject contains the specific meta data about a map that is stored in the map-arch, at the very beginning of the map file.
Handles the Crossfire variants of GameObjects and Archetypes.
Interface for classes that read or write GameObject instances.
FlatPickmapRenderer(@NotNull final MapViewSettings mapViewSettings, @NotNull final MapModel< GameObject, MapArchObject, Archetype > mapModel, @NotNull final MapGrid mapGrid, @NotNull final GridMapSquarePainter gridMapSquarePainter, @NotNull final GameObjectParser< GameObject, MapArchObject, Archetype > gameObjectParser)
Creates a new instance.
Handles the Crossfire GameObjects.
Class with constants used in Gridarta and derivates.
static final Color BG_COLOR
Background Color (for the Panels).
void updateSquares(@NotNull final Rectangle rectangle)
Base package of all Gridarta classes.
void updateSquare(@NotNull final Point point)
void paintSquare(@NotNull final Graphics g, final int x, final int y, @NotNull final MapSquare< GameObject, MapArchObject, Archetype > square)
Paints overlays for map grids.
Implements Crossfire archetypes.
final MapGrid mapGrid
The MapGrid to render.
Container for settings that affect the rendering of maps.
final MapViewSettings mapViewSettings
The MapViewSettings instance to use.
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
Defines common UI constants used in different dialogs and all used icon files.
final GameObjectParser< G, A, R > gameObjectParser
The GameObjectParser for creating tooltip information or.
Base classes for rendering maps.
void resizeBackBuffer(@NotNull final Dimension size)
Main package of Gridarta4Crossfire, contains all classes specific to the Crossfire version of the Gri...
static final long serialVersionUID
Serial Version UID.
void init()
Finishes initialization of this instance.
final GridMapSquarePainter gridMapSquarePainter
The GridMapSquarePainter to use.
int SQUARE_WIDTH
The width of a square in pixels.