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 TypeMethodDescriptionbooleancanDecodeGXYLayer(ILcdModel aModel, String aSourceName) Returns true if anILcdGXYLayercan 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 anILcdGXYLayercan be decoded from a given source name. Note that implementations using files should verify if the given aSourceName has the correct extension.- Parameters:
aModel- TheILcdModelof theILcdGXYLayerto decode.aSourceName- The source name of the layer, e.g. a file name or a database name, ...- Returns:
- true if an
ILcdGXYLayercan 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 returnedILcdGXYLayercan be added to aILcdGXYViewdirectly.The method
canDecodeGXYLayershould returntrue(for the same arguments) before this method is used.- Parameters:
aModel- TheILcdModelthat 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:
-