Package net.sf.gridarta.gui.map.renderer
Class GridMapSquarePainter
- java.lang.Object
-
- net.sf.gridarta.gui.map.renderer.GridMapSquarePainter
-
public class GridMapSquarePainter extends java.lang.Object
Paints overlays for map grids. Instances do not hold internal state; they may be accessed concurrently.
-
-
Constructor Summary
Constructors Constructor Description GridMapSquarePainter(@NotNull ResourceIcons resourceIcons)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paint(@NotNull java.awt.Graphics graphics, int gridFlags, boolean light, int x, int y, @NotNull java.awt.image.ImageObserver imageObserver)
Paints overlay images for one grid square.
-
-
-
Constructor Detail
-
GridMapSquarePainter
public GridMapSquarePainter(@NotNull @NotNull ResourceIcons resourceIcons)
Creates a new instance.- Parameters:
resourceIcons
- the resource icons for creating icons
-
-
Method Detail
-
paint
public void paint(@NotNull @NotNull java.awt.Graphics graphics, int gridFlags, boolean light, int x, int y, @NotNull @NotNull java.awt.image.ImageObserver imageObserver)
Paints overlay images for one grid square.- Parameters:
graphics
- the graphics to paint intogridFlags
- the grid flags to paintlight
- whether this map square is affected by a light emitting game objectx
- the x-coordinate to paint aty
- the y-coordinate to paint atimageObserver
- the image observer to notify
-
-