Package com.luciad.earth.tileset.util
Class TLcdEarthThreadSafeEditableTileSet
java.lang.Object
com.luciad.earth.tileset.util.ALcdEarthTileSetWrapper
com.luciad.earth.tileset.util.TLcdEarthThreadSafeTileSet
com.luciad.earth.tileset.util.TLcdEarthThreadSafeEditableTileSet
- All Implemented Interfaces:
ILcdEarthEditableTileSet
,ILcdEarthTileSet
,ILcdBounded
,ILcdDisposable
,AutoCloseable
public class TLcdEarthThreadSafeEditableTileSet
extends TLcdEarthThreadSafeTileSet
implements ILcdEarthEditableTileSet
A wrapper that provides thread-safe access to a delegate editable tileset. Thread-safety is only
guaranteed if a single instance of this class is used for all access to the delegate editable
tileset.
- Since:
- 8.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTile
(ALcdEarthTile aEarthTile, Object aContext) Adds a tile to the tileset.void
addTileSetCoverage
(ILcdEarthTileSetCoverage aCoverage) Adds a coverage to the tileset.void
addTileSetCoverage
(ILcdEarthTileSetCoverage aCoverage, String aTargetName, ILcdGeoReference aTargetReference) Adds a coverage to the tileset, overriding the coverage's native georeference and name.void
commit()
Flushes any pending changes to the tileset.void
removeTile
(ALcdEarthTile aTile, Object aContext) Removes the specified tile from the tileset.void
removeTileSetCoverage
(ILcdEarthTileSetCoverage aCoverage) Removes the specified coverage from the tileset.Methods inherited from class com.luciad.earth.tileset.util.TLcdEarthThreadSafeTileSet
cancelTile, containsTile, containsTileSetCoverage, dispose, getBounds, getLevelCount, getTileColumnCount, getTileRowCount, getTileSetCoverage, getTileSetCoverage, getTileSetCoverageCount, isFormatSupported, isGeoReferenceSupported, produceTile, produceTile, updateTile, updateTile
Methods inherited from class com.luciad.earth.tileset.util.ALcdEarthTileSetWrapper
getDelegateTileSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdDisposable
close
Methods inherited from interface com.luciad.earth.tileset.ILcdEarthTileSet
cancelTile, containsTile, containsTileSetCoverage, dispose, getBounds, getLevelCount, getTileColumnCount, getTileRowCount, getTileSetCoverage, getTileSetCoverage, getTileSetCoverageCount, isFormatSupported, isGeoReferenceSupported, produceTile, produceTile, updateTile, updateTile
-
Constructor Details
-
TLcdEarthThreadSafeEditableTileSet
-
-
Method Details
-
addTile
Description copied from interface:ILcdEarthEditableTileSet
Adds a tile to the tileset.- Specified by:
addTile
in interfaceILcdEarthEditableTileSet
- Parameters:
aEarthTile
- the tile to be added to the tilesetaContext
- application-specific data to be used by the tileset, if any- Throws:
IOException
- if the tile cannot be added to the tileset
-
addTileSetCoverage
Description copied from interface:ILcdEarthEditableTileSet
Adds a coverage to the tileset.- Specified by:
addTileSetCoverage
in interfaceILcdEarthEditableTileSet
- Parameters:
aCoverage
- the coverage to be added to the tileset- Throws:
IOException
- if the coverage cannot be added
-
addTileSetCoverage
public void addTileSetCoverage(ILcdEarthTileSetCoverage aCoverage, String aTargetName, ILcdGeoReference aTargetReference) throws IOException Description copied from interface:ILcdEarthEditableTileSet
Adds a coverage to the tileset, overriding the coverage's native georeference and name.- Specified by:
addTileSetCoverage
in interfaceILcdEarthEditableTileSet
- Parameters:
aCoverage
- the coverage to be added to the tilesetaTargetName
- the name of the new coverageaTargetReference
- the georeference into which the coverage should be encoded- Throws:
IOException
- if the coverage cannot be added
-
commit
Description copied from interface:ILcdEarthEditableTileSet
Flushes any pending changes to the tileset.- Specified by:
commit
in interfaceILcdEarthEditableTileSet
- Throws:
IOException
- if the commit fails
-
removeTile
Description copied from interface:ILcdEarthEditableTileSet
Removes the specified tile from the tileset. If the specified tile does not exist in this tileset, this method does nothing. If it exists but cannot be removed for some reason, an IOException is thrown.- Specified by:
removeTile
in interfaceILcdEarthEditableTileSet
- Parameters:
aTile
- the tile to be removedaContext
- application-specific data to be used by the tileset, if any- Throws:
IOException
- if the tile cannot be removed
-
removeTileSetCoverage
Description copied from interface:ILcdEarthEditableTileSet
Removes the specified coverage from the tileset. If the specified coverage does not exist in this tileset, this method does nothing. If it exists but cannot be removed for some reason, an IOException is thrown.- Specified by:
removeTileSetCoverage
in interfaceILcdEarthEditableTileSet
- Parameters:
aCoverage
- the coverage to be removed- Throws:
IOException
- if the coverage cannot be removed
-