@LcdService(service=ILspLayerFactory.class, priority=20000) public class TLspWMSLayerFactory extends Object implements ILspLayerFactory
Constructor and Description |
---|
TLspWMSLayerFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateLayers(ILcdModel aModel)
Determines whether or not this layer factory is capable of creating layers
for the given model.
|
Collection<ILspLayer> |
createLayers(ILcdModel aModel)
Creates one or more
ILspLayer objects for the given model. |
boolean |
isTiled()
Returns whether the created layers use a
TILED or SINGLE_IMAGE strategy. |
void |
setTiled(boolean aTiled)
Sets whether the layer factory creates layers using
TILED or SINGLE_IMAGE strategy. |
public boolean isTiled()
TILED
or SINGLE_IMAGE
strategy.
The default for this layer factory is true
.TILED
or SINGLE_IMAGE
strategy.public void setTiled(boolean aTiled)
TILED
or SINGLE_IMAGE
strategy.aTiled
- whether a tiled WMS strategy is used or not.public boolean canCreateLayers(ILcdModel aModel)
ILspLayerFactory
false
, the result of calling
ILspLayerFactory.createLayers(com.luciad.model.ILcdModel)
with the same parameters
is undefined.canCreateLayers
in interface ILspLayerFactory
aModel
- the model for which layers should be createdtrue
if this factory can create layers for aModel
, or false
otherwisepublic Collection<ILspLayer> createLayers(ILcdModel aModel)
ILspLayerFactory
ILspLayer
objects for the given model.
Note that this method should not be called if ILspLayerFactory.canCreateLayers(com.luciad.model.ILcdModel)
returns false
; the results are undefined in this case.
In most typical scenarios, this method will only create a single ILspLayer
instances
for a given model. In such cases, the ALspSingleLayerFactory
provides 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.createLayers
in interface ILspLayerFactory
aModel
- the model for which layers should be created