Package com.luciad.view.lightspeed.layer
Class ALspSingleLayerFactory
java.lang.Object
com.luciad.view.lightspeed.layer.ALspSingleLayerFactory
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ILspLayercreateLayer(ILcdModel aModel) Creates a singleILspLayerobject representing the given model.final Collection<ILspLayer> createLayers(ILcdModel aModel) CallscreateLayer(com.luciad.model.ILcdModel)and wraps its result in a single-elementCollection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.lightspeed.layer.ILspLayerFactory
canCreateLayers
-
Constructor Details
-
ALspSingleLayerFactory
public ALspSingleLayerFactory()
-
-
Method Details
-
createLayers
CallscreateLayer(com.luciad.model.ILcdModel)and wraps its result in a single-elementCollection. IfcreateLayer()returns null, an emptyCollectionis returned.- Specified by:
createLayersin interfaceILspLayerFactory- Parameters:
aModel- the model for which a layer should be created- Returns:
- a
Collectioncontaining the result ofcreateLayer()
-
createLayer
Creates a singleILspLayerobject representing the given model.- Parameters:
aModel- the model for which a layer should be created- Returns:
- a layer representing the given model
-