Package com.luciad.view.gxy
Interface ILcdGXYLayerDecoder
- All Known Implementing Classes:
TLcdFeaturedPointGXYLayerCodec
,TLcdFeaturedPolygonGXYLayerCodec
,TLcdFeaturedPolylineGXYLayerCodec
,TLcdMultilevelRasterGXYLayerCodec
,TLcdRasterGXYLayerCodec
,TLcyCompositeGXYLayerDecoder
,TLcyGXYAsynchronousLayerDecoder
public interface ILcdGXYLayerDecoder
This interface models a decoder for
ILcdGXYLayer
objects. This
decoder is responsible for restoring the state (e.g. the style) of an
ILcdGXYLayer
from some persistent storage.
It has a method canDecodeGXYLayer
that can be used to check if
a given ILcdGXYLayerDecoder
can decode a given source name. The
decoding itself can be performed using decodeGXYLayer
.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecodeGXYLayer
(ILcdModel aModel, String aSourceName) Returns true if anILcdGXYLayer
can be decoded from a given source name.decodeGXYLayer
(ILcdModel aModel, String aSourceName) Decodes the given source name into anILcdGXYLayer
.Returns the display name of this encoder.
-
Method Details
-
getDisplayName
String getDisplayName()Returns the display name of this encoder.- Returns:
- the display name of this encoder.
-
canDecodeGXYLayer
Returns true if anILcdGXYLayer
can be decoded from a given source name. Note that implementations using files should verify if the given aSourceName has the correct extension.- Parameters:
aModel
- TheILcdModel
of theILcdGXYLayer
to decode.aSourceName
- The source name of the layer, e.g. a file name or a database name, ...- Returns:
- true if an
ILcdGXYLayer
can be decoded from a given source name, false otherwise. - See Also:
-
decodeGXYLayer
Decodes the given source name into anILcdGXYLayer
. The given model is set as the model of the returnedILcdGXYLayer
. The returnedILcdGXYLayer
can be added to aILcdGXYView
directly.The method
canDecodeGXYLayer
should returntrue
(for the same arguments) before this method is used.- Parameters:
aModel
- TheILcdModel
that is set to theILcdGXYLayer
.aSourceName
- The source name of the layer, e.g. a file name or a database name, ...- Returns:
- The decoded
ILcdGXYLayer
. - Throws:
IOException
- In case of io failure.- See Also:
-