public interface ILcdGXYLayerDecoder
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
.
ILcdGXYLayerEncoder
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)
Decodes the given source name into an
ILcdGXYLayer . |
String |
getDisplayName()
Returns the display name of this encoder.
|
String getDisplayName()
boolean canDecodeGXYLayer(ILcdModel aModel, String aSourceName)
ILcdGXYLayer
can be decoded from a given
source name. Note that implementations using files should verify if the given
aSourceName has the correct extension.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.decodeGXYLayer(com.luciad.model.ILcdModel, java.lang.String)
ILcdGXYLayer decodeGXYLayer(ILcdModel aModel, String aSourceName) throws IOException
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.
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, ...ILcdGXYLayer
.IOException
- In case of io failure.canDecodeGXYLayer(com.luciad.model.ILcdModel, java.lang.String)