Interface ILcyLayerStyleCodec

All Known Implementing Classes:
TLcyCompositeLayerStyleCodec

public interface ILcyLayerStyleCodec

This interface models a codec (encoder/decoder) for ILcyLayerStyle objects. The codec is responsible for storing ILcyLayerStyle objects to some (persistent) storage, and to restore the ILcyLayerStyle objects later on from that (persistent) storage.

This functionality is currently only supported for Lightspeed layers.

Since:
2012.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canDecode(ILcdLayer aLayer, ILcyLayerStyle aLayerStyle)
    Returns true when this codec is capable of adjusting the state of aLayerStyle to match the settings stored in some (persistent) storage.
    boolean
    canEncode(ILcdLayer aLayer, ILcyLayerStyle aLayerStyle)
    Returns true if the given ILcyLayerStyle, retrieved from aLayer, can be encoded by this codec.
    void
    decode(ILcdLayer aLayer, ILcyLayerStyle aLayerStyleSFCT, InputStream aInputStream)
    Adjusts the settings of aLayerStyleSFCT to match those stored in aInputStream.
    void
    encode(ILcdLayer aLayer, ILcyLayerStyle aLayerStyle, OutputStream aOutputStream)
    Encodes the given ILcyLayerStyle to the given OutputStream.
    Returns the display name of this decoder