20 package net.sf.gridarta.var.crossfire.gui.map.renderer;
22 import java.awt.Color;
23 import java.awt.Graphics;
24 import java.awt.Point;
25 import java.awt.Rectangle;
26 import java.awt.image.BufferedImage;
27 import javax.swing.ImageIcon;
37 import org.jetbrains.annotations.NotNull;
68 private final Point
offset =
new Point();
91 throw new IllegalStateException(
"unsupported operation");
107 final BufferedImage image =
new BufferedImage(viewWidth, viewHeight, BufferedImage.TYPE_INT_ARGB);
108 final Graphics g = image.getGraphics();
119 throw new IllegalStateException(
"unsupported operation");
125 g.setColor(Color.white);
127 final Point point =
new Point();
128 for (point.y = 0; point.y < mapSize.
getHeight(); point.y++) {
129 for (point.x = 0; point.x < mapSize.
getWidth(); point.x++) {
140 private void paintSquare(@NotNull
final Graphics graphics, @NotNull
final Point point) {
141 if (
mapModel.getMapSquare(point).isEmpty()) {
151 final ImageIcon img = node.getNormalImage();
177 throw new IllegalStateException(
"unsupported operation");