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.
|
Constructor and Description |
---|
Tile(TileIdentifier tileId,
ReferencedEnvelope env,
int tileSize)
for locking on the SWT image to prevent creating it multiple times
|
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() |
int |
hashCode() |
BufferedImage |
loadImageTileImage(Tile tile)
Loads an image for the given tile.
|
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
public Tile(TileIdentifier tileId, ReferencedEnvelope env, int tileSize)
public void setImageLoader(ImageLoader imageLoader)
public void setStateChangedListener(TileStateChangedListener listener)
public void dispose()
public BufferedImage getBufferedImage()
public BufferedImage loadImageTileImage(Tile tile) throws IOException
ImageLoader
loadImageTileImage
in interface ImageLoader
IOException
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.
newState
- 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.
newState
- 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.
newState
- 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.
newState
- public String getId()
public TileIdentifier getTileIdentifier()
public abstract URL getUrl()
Copyright © 1996–2019 Geotools. All rights reserved.