Package com.luciad.wms.client.lightspeed
Class TLspWMSLayerFactory
java.lang.Object
com.luciad.wms.client.lightspeed.TLspWMSLayerFactory
- All Implemented Interfaces:
ILspLayerFactory
@LcdService(service=ILspLayerFactory.class,
priority=20000)
public class TLspWMSLayerFactory
extends Object
implements ILspLayerFactory
Layer factory to create layers visualizing a WMS model.
- Since:
- 2021.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateLayers(ILcdModel aModel) Determines whether or not this layer factory is capable of creating layers for the given model.createLayers(ILcdModel aModel) Creates one or moreILspLayerobjects for the given model.booleanisTiled()Returns whether the created layers use aTILEDorSINGLE_IMAGEstrategy.voidsetTiled(boolean aTiled) Sets whether the layer factory creates layers usingTILEDorSINGLE_IMAGEstrategy.
-
Constructor Details
-
TLspWMSLayerFactory
public TLspWMSLayerFactory()
-
-
Method Details
-
isTiled
public boolean isTiled()Returns whether the created layers use aTILEDorSINGLE_IMAGEstrategy. The default for this layer factory istrue.- Returns:
- whether created layer uses a
TILEDorSINGLE_IMAGEstrategy.
-
setTiled
public void setTiled(boolean aTiled) Sets whether the layer factory creates layers usingTILEDorSINGLE_IMAGEstrategy.- Parameters:
aTiled- whether a tiled WMS strategy is used or not.
-
canCreateLayers
Description copied from interface:ILspLayerFactoryDetermines whether or not this layer factory is capable of creating layers for the given model. If this method returnsfalse, the result of callingILspLayerFactory.createLayers(com.luciad.model.ILcdModel)with the same parameters is undefined.- Specified by:
canCreateLayersin interfaceILspLayerFactory- Parameters:
aModel- the model for which layers should be created- Returns:
trueif this factory can create layers foraModel, orfalseotherwise
-
createLayers
Description copied from interface:ILspLayerFactoryCreates one or moreILspLayerobjects for the given model. Note that this method should not be called ifILspLayerFactory.canCreateLayers(com.luciad.model.ILcdModel)returnsfalse; the results are undefined in this case. In most typical scenarios, this method will only create a singleILspLayerinstances for a given model. In such cases, theALspSingleLayerFactoryprovides a convenient abstract base class for layer factory implementations. An example of when it might be useful to return multiple layers is a model that describes objects moving along a certain trajectory. The layer factory might return one layer which represents the trajectories as polylines, and another which represents the current positions of the objects as point icons.- Specified by:
createLayersin interfaceILspLayerFactory- Parameters:
aModel- the model for which layers should be created- Returns:
- a collection of layers representing the given model
-