Package com.luciad.lucy.map.asynchronous
Class TLcyGXYAsynchronousLayerEncoder
java.lang.Object
com.luciad.lucy.map.asynchronous.TLcyGXYAsynchronousLayerEncoder
- All Implemented Interfaces:
ILcdGXYLayerEncoder
Asynchronous layer encoder, wrapping around an existing layer encoder.
It allows to easily convert a layer encoder into a layer encoder that supports asynchronous painting.
In particular, it ensures that the encoding does not interfere with asynchronous painting.
-
Constructor Summary
ConstructorsConstructorDescriptionTLcyGXYAsynchronousLayerEncoder(ILcyLucyEnv aLucyEnv, ILcdGXYLayerEncoder aLayerEncoder) Creates a new layer workspace codec. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEncodeGXYLayer(ILcdGXYLayer aGXYLayer, String aDestinationName) Returns true if the given layer can be encoded to the given destination name.voidencodeGXYLayer(ILcdGXYLayer aGXYLayer, String aDestinationName) Encodes the given layer to the given destination name.Returns the display name of this encoder.
-
Constructor Details
-
TLcyGXYAsynchronousLayerEncoder
Creates a new layer workspace codec.- Parameters:
aLucyEnv- Lucy environmentaLayerEncoder- existing encoder to wrap. Calls pertaining to an asynchronously painted layer will be delegated using a safe layer.
-
-
Method Details
-
getDisplayName
Description copied from interface:ILcdGXYLayerEncoderReturns the display name of this encoder.- Specified by:
getDisplayNamein interfaceILcdGXYLayerEncoder- Returns:
- the display name of this encoder.
-
canEncodeGXYLayer
Description copied from interface:ILcdGXYLayerEncoderReturns true if the given layer can be encoded to the given destination name. Note that implementations using files should verify if the given aDestinationName has the correct extension.- Specified by:
canEncodeGXYLayerin interfaceILcdGXYLayerEncoder- Parameters:
aGXYLayer- The layer to be encoded.aDestinationName- The destination name to encode the layer to, e.g. a file name, a database name, ...- Returns:
- true if the given layer can be encoded to the given destination name, false otherwise.
- See Also:
-
encodeGXYLayer
Description copied from interface:ILcdGXYLayerEncoderEncodes the given layer to the given destination name.The method
canEncodeGXYLayershould returntrue(for the same arguments) before this method is used.- Specified by:
encodeGXYLayerin interfaceILcdGXYLayerEncoder- Parameters:
aGXYLayer- The layer to encode.aDestinationName- The destination name to encode the layer to, e.g. a file name, a database name, ...- Throws:
IOException- In case of io failure.- See Also:
-