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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTile(ALcdEarthTile aEarthTile, Object aContext) Adds a tile to the tileset.voidaddTileSetCoverage(ILcdEarthTileSetCoverage aCoverage) Adds a coverage to the tileset.voidaddTileSetCoverage(ILcdEarthTileSetCoverage aCoverage, String aTargetName, ILcdGeoReference aTargetReference) Adds a coverage to the tileset, overriding the coverage's native georeference and name.voidcommit()Flushes any pending changes to the tileset.voidremoveTile(ALcdEarthTile aTile, Object aContext) Removes the specified tile from the tileset.voidremoveTileSetCoverage(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, updateTileMethods inherited from class com.luciad.earth.tileset.util.ALcdEarthTileSetWrapper
getDelegateTileSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdDisposable
closeMethods 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:ILcdEarthEditableTileSetAdds a tile to the tileset.- Specified by:
addTilein 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:ILcdEarthEditableTileSetAdds a coverage to the tileset.- Specified by:
addTileSetCoveragein 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:ILcdEarthEditableTileSetAdds a coverage to the tileset, overriding the coverage's native georeference and name.- Specified by:
addTileSetCoveragein 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:ILcdEarthEditableTileSetFlushes any pending changes to the tileset.- Specified by:
commitin interfaceILcdEarthEditableTileSet- Throws:
IOException- if the commit fails
-
removeTile
Description copied from interface:ILcdEarthEditableTileSetRemoves 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:
removeTilein 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:ILcdEarthEditableTileSetRemoves 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:
removeTileSetCoveragein interfaceILcdEarthEditableTileSet- Parameters:
aCoverage- the coverage to be removed- Throws:
IOException- if the coverage cannot be removed
-