} else if (tt.getBuildingTile() != null) { one2oneImage.setRGB(tile.x, tile.y, BUILDING_COLOR); } else { int typeNumber = tt.getTerrainTypeNumber(); TerrainType terrainType = (TerrainType)w.get(KEY.TERRAIN_TYPES, typeNumber); one2oneImage.setRGB(tile.x, tile.y, terrainType.getRGB());
    private void refreshTile(Point tile) {        int rgb;        FreerailsTile tt = w.getTile(tile.x, tile.y);        if (tt.getTrackTile() == null) {		int typeNumber = tt.getTerrainTypeNumber();		TerrainType terrainType = (TerrainType)w.get(KEY.TERRAIN_TYPES,			typeNumber);		one2oneImage.setRGB(tile.x, tile.y, terrainType.getRGB());        } else {            /* black with alpha of 1 */            one2oneImage.setRGB(tile.x, tile.y, 0xff000000);        }	int scaledX = (tile.x - mapX) * imageWidth / mapWidth;	int scaledY = (tile.y - mapY) * imageHeight / mapHeight;	int minx = scaledX < 1 ? 0 : scaledX - 1;	int miny = scaledY < 1 ? 0 : scaledY - 1;	int maxx = scaledX > imageWidth - 2 ? imageWidth : scaledX + 2;	int maxy = scaledY > imageHeight - 2 ? imageHeight : scaledY + 2;	mapGraphics.setClip(minx, miny, maxx - minx, maxy - miny);	mapGraphics.drawImage(one2oneImage, affineTransform,  null);    }