public class TLcyGXYAsynchronousLayerEncoder extends Object implements ILcdGXYLayerEncoder
In particular, it ensures that the encoding does not interfere with asynchronous painting.
Constructor and Description |
---|
TLcyGXYAsynchronousLayerEncoder(ILcyLucyEnv aLucyEnv,
ILcdGXYLayerEncoder aLayerEncoder)
Creates a new layer workspace codec.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canEncodeGXYLayer(ILcdGXYLayer aGXYLayer,
String aDestinationName)
Returns true if the given layer can be encoded to the given destination
name.
|
void |
encodeGXYLayer(ILcdGXYLayer aGXYLayer,
String aDestinationName)
Encodes the given layer to the given destination name.
|
String |
getDisplayName()
Returns the display name of this encoder.
|
public TLcyGXYAsynchronousLayerEncoder(ILcyLucyEnv aLucyEnv, ILcdGXYLayerEncoder aLayerEncoder)
aLucyEnv
- Lucy environmentaLayerEncoder
- existing encoder to wrap. Calls pertaining to an asynchronously painted layer will be delegated
using a safe layer.public String getDisplayName()
ILcdGXYLayerEncoder
getDisplayName
in interface ILcdGXYLayerEncoder
public boolean canEncodeGXYLayer(ILcdGXYLayer aGXYLayer, String aDestinationName)
ILcdGXYLayerEncoder
canEncodeGXYLayer
in interface ILcdGXYLayerEncoder
aGXYLayer
- The layer to be encoded.aDestinationName
- The destination name to encode the layer to, e.g.
a file name, a database name, ...ILcdGXYLayerEncoder.encodeGXYLayer(com.luciad.view.gxy.ILcdGXYLayer, java.lang.String)
public void encodeGXYLayer(ILcdGXYLayer aGXYLayer, String aDestinationName) throws IOException
ILcdGXYLayerEncoder
The method canEncodeGXYLayer
should return true
(for the same arguments) before this method is used.
encodeGXYLayer
in interface ILcdGXYLayerEncoder
aGXYLayer
- The layer to encode.aDestinationName
- The destination name to encode the layer to, e.g.
a file name, a database name, ...IOException
- In case of io failure.ILcdGXYLayerEncoder.canEncodeGXYLayer(com.luciad.view.gxy.ILcdGXYLayer, java.lang.String)