Class ImageCache
java.lang.Object
org.openstreetmap.josm.data.osm.visitor.paint.ImageCache
A record for keeping the image information for a tile. Used in conjunction with
TileZXY for
JCSCacheManager.- Since:
- 19176
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Imageprivate final StyledTiledMapRenderer.TileLoaderprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionImageCache(Image image, StyledTiledMapRenderer.TileLoader imageFuture, boolean isDirty) Create a newImageCacheobject -
Method Summary
Modifier and TypeMethodDescriptionMark this tile as dirtyimage()Get the image to paint(package private) StyledTiledMapRenderer.TileLoaderGet the image futurebooleanisDirty()Check if this tile is dirty
-
Field Details
-
isDirty
-
imageFuture
-
image
-
-
Constructor Details
-
ImageCache
ImageCache(Image image, StyledTiledMapRenderer.TileLoader imageFuture, boolean isDirty) Create a newImageCacheobject- Parameters:
image- The image to paint (optional; either this orimageFuturemust be specified)imageFuture- The future for the image (optional; either this orimagemust be specified)isDirty-trueif the tile needs to be repainted
-
-
Method Details
-
isDirty
Check if this tile is dirty- Returns:
trueif this is a dirty tile
-
becomeDirty
Mark this tile as dirty- Returns:
- The tile to put in the cache
-
image
Get the image to paint- Returns:
- The image (may be
null)
-
imageFuture
Get the image future- Returns:
- The image future (may be
null)
-