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 Details

    • getDisplayName

      String getDisplayName()
      Returns the display name of this encoder.
      Returns:
      the display name of this encoder.
    • canDecodeGXYLayer

      boolean canDecodeGXYLayer(ILcdModel aModel, String aSourceName)
      Returns true if an ILcdGXYLayer 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 - The ILcdModel of the ILcdGXYLayer 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

      ILcdGXYLayer decodeGXYLayer(ILcdModel aModel, String aSourceName) throws IOException
      Decodes the given source name into an ILcdGXYLayer. The given model is set as the model of the returned ILcdGXYLayer. The returned ILcdGXYLayer can be added to a ILcdGXYView directly.

      The method canDecodeGXYLayer should return true (for the same arguments) before this method is used.

      Parameters:
      aModel - The ILcdModel that is set to the ILcdGXYLayer.
      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: