 |
Gridarta Editor
|
Go to the documentation of this file.
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;
93 g.setColor(getBackground());
95 if (square.isEmpty()) {
100 final ImageIcon img = node.getNormalImage();
void updateAll()
Callback function that is called when any square may have changed.
void updateSquares(@NotNull final Rectangle rectangle)
Callback function that is called when multiple squares may have changed.
A MapModel reflects the data of a map.
void paintSquare(@NotNull final Graphics g, final int x, final int y, @NotNull final MapSquare< GameObject, MapArchObject, Archetype > square)
Paints one square.
Base package of all Gridarta classes.
Class with constants used in Gridarta and derivates.
Container for settings that affect the rendering of maps.
final GridMapSquarePainter gridMapSquarePainter
The GridMapSquarePainter to use.
This is the default renderer of a map.
Paints overlays for map grids.
Graphical User Interface of Gridarta.
final GameObjectParser< G, A, R > gameObjectParser
The GameObjectParser for creating tooltip information or.
Defines common UI constants used in different dialogs and all used icon files.
Implements Crossfire archetypes.
MapArchObject contains the specific meta data about a map that is stored in the map-arch,...
final MapGrid mapGrid
The MapGrid to render.
static final Color BG_COLOR
Background Color (for the Panels).
Main package of Gridarta4Crossfire, contains all classes specific to the Crossfire version of the Gri...
final MapModel< GameObject, MapArchObject, Archetype > mapModel
The MapModel to render.
final MapViewSettings mapViewSettings
The MapViewSettings instance to use.
int SQUARE_WIDTH
The width of a square in pixels.
static final long serialVersionUID
Serial Version UID.
Reading and writing of maps, handling of paths.
2D-Grid containing flags for selection, pre-selection, cursor, warnings and errors.
Base classes for rendering maps.
Handles the Crossfire variants of GameObjects and Archetypes.
void paintComponent(@NotNull final Graphics g)
@noinspection AbstractMethodOverridesConcreteMethod
Handles the Crossfire GameObjects.
void init()
Finishes initialization of this instance.
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.
void resizeBackBuffer(@NotNull final Dimension size)
Resizes the backing buffer to the new grid size.
int SQUARE_HEIGHT
The height of a square in pixels.
void updateSquare(@NotNull final Point point)
Callback function that is called when a square may have changed.
A AbstractFlatMapRenderer to render map files.