public abstract class Tile extends Object implements ImageLoader
Modifier and Type | Class and Description |
---|---|
static class |
Tile.ContextState
These states represent the state of the context.
|
static class |
Tile.RenderState
These are the states of the tile.
|
static class |
Tile.ScreenState
These states represent if the tile is on or off screen.
|
static class |
Tile.ValidatedState
These states represent if the tile has been validated in response to a user event.
|
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
protected TileService |
service
The initiating service
|
Constructor and Description |
---|
Tile(TileIdentifier tileId,
ReferencedEnvelope env,
int tileSize)
Creates a tile for the identity given by tileId.
|
Tile(TileIdentifier tileId,
ReferencedEnvelope env,
int tileSize,
TileService service)
Creates a new tile.
|
Modifier and Type | Method and Description |
---|---|
protected BufferedImage |
createErrorImage(String message)
Gets an image showing an error, possibly indicating a failure to load the tile image.
|
void |
dispose()
Disposes of the tile.
|
boolean |
equals(Object other) |
BufferedImage |
getBufferedImage() |
Tile.ContextState |
getContextState()
This function returns the state of the tile render stack.
|
ReferencedEnvelope |
getExtent() |
String |
getId()
Diese Methode wird verwendet um...
|
Tile.RenderState |
getRenderState()
Gets the state of the tiled image.
|
Tile.ScreenState |
getScreenState()
Sets if the tile is on screen or not.
|
TileIdentifier |
getTileIdentifier()
Diese Methode wird verwendet um...
|
int |
getTileSize() |
Tile.ValidatedState |
getTileState()
Gets the validation state.
|
abstract URL |
getUrl()
A unique url for every tile
|
int |
hashCode() |
BufferedImage |
loadImageTileImage(Tile tile)
Implementation of ImageLoader.
|
void |
setContextState(Tile.ContextState newState)
Sets the state of the tile rendering stack.
|
void |
setImageLoader(ImageLoader imageLoader) |
void |
setRenderState(Tile.RenderState newState)
Sets the state of the tiles image.
|
void |
setScreenState(Tile.ScreenState newState)
Sets the screen state.
|
void |
setStateChangedListener(TileStateChangedListener listener) |
void |
setTileState(Tile.ValidatedState newState)
Sets the validation state.
|
String |
toString() |
protected static final Logger LOGGER
protected TileService service
public Tile(TileIdentifier tileId, ReferencedEnvelope env, int tileSize)
public Tile(TileIdentifier tileId, ReferencedEnvelope env, int tileSize, TileService service)
public void setImageLoader(ImageLoader imageLoader)
public void setStateChangedListener(TileStateChangedListener listener)
public void dispose()
public BufferedImage getBufferedImage()
public BufferedImage loadImageTileImage(Tile tile) throws IOException
loadImageTileImage
in interface ImageLoader
IOException
TileService.loadImageTileImage(Tile)}
protected BufferedImage createErrorImage(String message)
public int getTileSize()
public ReferencedEnvelope getExtent()
public void setRenderState(Tile.RenderState newState)
See getRenderState() for a description of the valid states.
public Tile.RenderState getRenderState()
One Of:
public Tile.ContextState getContextState()
Should be one of:
public void setContextState(Tile.ContextState newState)
See getContextState() for valid value descriptions.
public Tile.ScreenState getScreenState()
This is used with other information to determine if a tile can be disposed of. Valid values include:
public void setScreenState(Tile.ScreenState newState)
See getScreenState() for a description of the valid values.
public Tile.ValidatedState getTileState()
This is used in conjunction with the screen state to determine it a tile can be disposed of. This state is set during a refresh event that is triggered from some gui event. Valid values include:
public void setTileState(Tile.ValidatedState newState)
See getTileState() for a description of valid values.
public String getId()
public TileIdentifier getTileIdentifier()
public abstract URL getUrl()
Copyright © 1996–2022 Geotools. All rights reserved.