Class GridMapSquarePainter


  • public class GridMapSquarePainter
    extends java.lang.Object
    Paints overlays for map grids. Instances do not hold internal state; they may be accessed concurrently.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 into
        gridFlags - the grid flags to paint
        light - whether this map square is affected by a light emitting game object
        x - the x-coordinate to paint at
        y - the y-coordinate to paint at
        imageObserver - the image observer to notify