public class TLcyGXYAsynchronousLayerDecoder extends Object implements ILcdGXYLayerDecoder
Constructor and Description |
---|
TLcyGXYAsynchronousLayerDecoder(ILcyLucyEnv aLucyEnv,
ILcdGXYLayerDecoder aLayerDecoder,
ILcdFilter aAsynchronousLayerFilter)
Creates a new layer workspace codec.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeGXYLayer(ILcdModel aModel,
String aSourceName)
Returns true if an
ILcdGXYLayer can be decoded from a given
source name. |
ILcdGXYLayer |
decodeGXYLayer(ILcdModel aModel,
String aSourceName)
This method decodes an
ILcdGXYLayer for representing
an ILcdModel on an ILcdGXYView . |
String |
getDisplayName()
Returns the display name of this encoder.
|
public TLcyGXYAsynchronousLayerDecoder(ILcyLucyEnv aLucyEnv, ILcdGXYLayerDecoder aLayerDecoder, ILcdFilter aAsynchronousLayerFilter)
aLucyEnv
- Lucy environmentaLayerDecoder
- existing decoder to wrap. Created layers will be made asynchronous.aAsynchronousLayerFilter
- the filter to use to determine if a created layer should
be painted asynchronously. If null, all created layers are painted asynchronously.public String getDisplayName()
ILcdGXYLayerDecoder
getDisplayName
in interface ILcdGXYLayerDecoder
public boolean canDecodeGXYLayer(ILcdModel aModel, String aSourceName)
ILcdGXYLayerDecoder
ILcdGXYLayer
can be decoded from a given
source name. Note that implementations using files should verify if the given
aSourceName has the correct extension.canDecodeGXYLayer
in interface ILcdGXYLayerDecoder
aModel
- The ILcdModel
of the ILcdGXYLayer
to decode.aSourceName
- The source name of the layer, e.g. a file name or a
database name, ...ILcdGXYLayer
can be decoded from a given
source name, false otherwise.ILcdGXYLayerDecoder.decodeGXYLayer(com.luciad.model.ILcdModel, java.lang.String)
public ILcdGXYLayer decodeGXYLayer(ILcdModel aModel, String aSourceName) throws IOException
ILcdGXYLayer
for representing
an ILcdModel
on an ILcdGXYView
.
It creates a layer using the wrapped decoder and makes it asynchronous
if it is accepted by the asynchronous layer filter, using
ALcyAsynchronousPaintFacade.createGXYAsynchronousLayer(com.luciad.view.gxy.ILcdGXYLayer)
decodeGXYLayer
in interface ILcdGXYLayerDecoder
aModel
- the model for which to create a layeraSourceName
- The source name of the layer, e.g. a file name or a
database name, ...ILcdGXYLayer
IOException
- In case of an io failure.ILcdGXYLayerDecoder.canDecodeGXYLayer(com.luciad.model.ILcdModel, java.lang.String)