Using DiskMemImageGraphics.create does not copy the used AffineTransformation but uses the original one. This has the effect that on using scale, rotate etc. the original transformation in the original Graphics2D object is changed as well. A test is included as well.
The TileCacheVisitorTest does fail if a new JDK is used on a fast computer. This is due to DiskMemTileCache.defaultMemoryControl line 807. The comparator does sort by TileAccessTimeComparator. The access time of all tiles could be equal on fast computers.
Assuming that the filter order within the BaseCacheVisitor should be preserved I changed the implementation to a LinkedHashMap.
This patch adresses some issues.
Using DiskMemImageGraphics.create does not copy the used AffineTransformation but uses the original one. This has the effect that on using scale, rotate etc. the original transformation in the original Graphics2D object is changed as well. A test is included as well.
The TileCacheVisitorTest does fail if a new JDK is used on a fast computer. This is due to DiskMemTileCache.defaultMemoryControl line 807. The comparator does sort by TileAccessTimeComparator. The access time of all tiles could be equal on fast computers.
Assuming that the filter order within the BaseCacheVisitor should be preserved I changed the implementation to a LinkedHashMap.