Class ALspSingleLayerFactory

java.lang.Object
com.luciad.view.lightspeed.layer.ALspSingleLayerFactory
All Implemented Interfaces:
ILspLayerFactory

public abstract class ALspSingleLayerFactory extends Object implements ILspLayerFactory
Convenience class for implementing layer factories with a one-one mapping between layers and models. Derived classes must implement the createLayer(com.luciad.model.ILcdModel) method. The interface method createLayers(com.luciad.model.ILcdModel) (plural form) delegates to this method and wraps its result in a single-element Collection.
Since:
2012.0
  • Constructor Details

    • ALspSingleLayerFactory

      public ALspSingleLayerFactory()
  • Method Details

    • createLayers

      public final Collection<ILspLayer> createLayers(ILcdModel aModel)
      Calls createLayer(com.luciad.model.ILcdModel) and wraps its result in a single-element Collection. If createLayer() returns null, an empty Collection is returned.
      Specified by:
      createLayers in interface ILspLayerFactory
      Parameters:
      aModel - the model for which a layer should be created
      Returns:
      a Collection containing the result of createLayer()
    • createLayer

      public abstract ILspLayer createLayer(ILcdModel aModel)
      Creates a single ILspLayer object representing the given model.
      Parameters:
      aModel - the model for which a layer should be created
      Returns:
      a layer representing the given model