public interface ILcdGXYLayerEncoder
ILcdGXYLayer
objects. This
encoder is responsible for storing the state (e.g. the style) of an
ILcdGXYLayer
into some persistent storage.
It has a method canEncodeGXYLayer
that can be used to check if
a given ILcdGXYLayerEncoder
can encode a given
ILcdGXYLayer
. The encoding itself can be performed using
encodeGXYLayer
.
ILcdGXYLayerDecoder
Modifier and Type | Method and Description |
---|---|
boolean |
canEncodeGXYLayer(ILcdGXYLayer aGXYLayer,
String aDestinationName)
Returns true if the given layer can be encoded to the given destination
name.
|
void |
encodeGXYLayer(ILcdGXYLayer aGXYLayer,
String aDestinationName)
Encodes the given layer to the given destination name.
|
String |
getDisplayName()
Returns the display name of this encoder.
|
String getDisplayName()
boolean canEncodeGXYLayer(ILcdGXYLayer aGXYLayer, String aDestinationName)
aGXYLayer
- The layer to be encoded.aDestinationName
- The destination name to encode the layer to, e.g.
a file name, a database name, ...encodeGXYLayer(com.luciad.view.gxy.ILcdGXYLayer, java.lang.String)
void encodeGXYLayer(ILcdGXYLayer aGXYLayer, String aDestinationName) throws IOException
The method canEncodeGXYLayer
should return true
(for the same arguments) before this method is used.
aGXYLayer
- The layer to encode.aDestinationName
- The destination name to encode the layer to, e.g.
a file name, a database name, ...IOException
- In case of io failure.canEncodeGXYLayer(com.luciad.view.gxy.ILcdGXYLayer, java.lang.String)