Interface TLcyGXYLspAsynchronousFormatWrapper.GXYLspLayerFactory

Enclosing class:
TLcyGXYLspAsynchronousFormatWrapper

public static interface TLcyGXYLspAsynchronousFormatWrapper.GXYLspLayerFactory

A factory that can create an ILspLayer equivalent of a given ILcdGXYLayer .

It is up to the implementor of this factory to keep the style of the ILspLayer in sync with the provided ILcdGXYLayer.

Since:
2012.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether or not this layer factory is capable of creating an ILspLayer equivalent of the given ILcdGXYLayer.
    Creates an ILspLayer equivalent of the given ILcdGXYLayer.
  • Method Details

    • canCreateLayer

      boolean canCreateLayer(ILcdGXYLayer aLayer)
      Determines whether or not this layer factory is capable of creating an ILspLayer equivalent of the given ILcdGXYLayer. If this method returns false, the result of calling createLayer(ILcdGXYLayer) with the same argument is undefined.
      Parameters:
      aLayer - the ILcdGXYLayer for which an ILspLayer equivalent should be created
      Returns:
      true if this factory can create a layer for the given GXY layer, false otherwise
    • createLayer

      ILspLayer createLayer(ILcdGXYLayer aLayer)

      Creates an ILspLayer equivalent of the given ILcdGXYLayer. The layer must have a valid ILcdModelXYZWorldTransformation to be usable by the view. Note that this method should not be called if canCreateLayer(ILcdGXYLayer) returns false; the results are undefined in this case.

      Additionally, the style of the created Lightspeed layer should be kept in sync with the style of aLayer: if the style of aLayer changes, the style of the returned Lightspeed layer should be updated as well. Note that aLayer should not be updated if the style of the returned Lightspeed layer has changed.

      Parameters:
      aLayer - the ILcdGXYLayer for which an ILspLayer equivalent should be created
      Returns:
      a layer equivalent to ILcdGXYLayer