Package com.luciad.ogc.sld.view.gxy
Class TLcdSLDGXYCompositeLayerFactory
java.lang.Object
com.luciad.ogc.sld.view.gxy.TLcdSLDGXYCompositeLayerFactory
- All Implemented Interfaces:
ILcdSLDGXYLayerFactory
Composite implementation of
ILcdSLDGXYLayerFactory
. Any number of layer factories can be added to this
composite. The createGXYLayer
method will delegate to the first factory
in the list whose createGXYLayer
does not return null
for the
given input model.- Since:
- 2017.0
-
Constructor Summary
ConstructorDescriptionTLcdSLDGXYCompositeLayerFactory
(ILcdSLDGXYLayerFactory... aLayerFactories) Creates a new composite layer factory containing the supplied delegate factories.TLcdSLDGXYCompositeLayerFactory
(Iterable<? extends ILcdSLDGXYLayerFactory> aLayerFactories) Creates a new composite layer factory that lazily uses the given Iterable to delegate to. -
Method Summary
Modifier and TypeMethodDescriptioncreateGXYLayer
(ILcdModel aModel, List<TLcdSLDFeatureTypeStyle> aSLDFeatureTypeStyles) Creates anILcdGXYLayer
for representing the givenILcdModel
on anILcdGXYView
, according to the givenTLcdSLDFeatureTypeStyle
's.
-
Constructor Details
-
TLcdSLDGXYCompositeLayerFactory
Creates a new composite layer factory that lazily uses the given Iterable to delegate to.- Parameters:
aLayerFactories
- a list of layer factories
-
TLcdSLDGXYCompositeLayerFactory
Creates a new composite layer factory containing the supplied delegate factories.- Parameters:
aLayerFactories
- delegate factories to be added to the composite
-
-
Method Details
-
createGXYLayer
public ILcdGXYLayer createGXYLayer(ILcdModel aModel, List<TLcdSLDFeatureTypeStyle> aSLDFeatureTypeStyles) Creates anILcdGXYLayer
for representing the givenILcdModel
on anILcdGXYView
, according to the givenTLcdSLDFeatureTypeStyle
's.Delegates to the first layer factory whose
createGXYLayer
method does not returnnull
for the given model and feature type style.- Specified by:
createGXYLayer
in interfaceILcdSLDGXYLayerFactory
- Parameters:
aModel
- the model that needs to be visualized in anILcdGXYView
aSLDFeatureTypeStyles
- the SLD feature type style(s) defining how the model should be visually represented on the view- Returns:
- a layer representing the given model, or
null
if a layer cannot be created (e.g. because this layer factory doesn't support the given model).
-