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
-
Method Summary
Modifier and TypeMethodDescriptionabstract ILspLayer
createLayer
(ILcdModel aModel) Creates a singleILspLayer
object 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, wait
Methods 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 emptyCollection
is returned.- Specified by:
createLayers
in interfaceILspLayerFactory
- Parameters:
aModel
- the model for which a layer should be created- Returns:
- a
Collection
containing the result ofcreateLayer()
-
createLayer
Creates a singleILspLayer
object representing the given model.- Parameters:
aModel
- the model for which a layer should be created- Returns:
- a layer representing the given model
-