Package com.luciad.ogc.sld.view.gxy
Class TLcdSLDGXYLayerFactory
java.lang.Object
com.luciad.ogc.sld.view.gxy.TLcdSLDGXYLayerFactory
- All Implemented Interfaces:
ILcdSLDGXYLayerFactory
@LcdService(service=ILcdSLDGXYLayerFactory.class,
priority=50100)
public final class TLcdSLDGXYLayerFactory
extends Object
implements ILcdSLDGXYLayerFactory
Fallback SLD layer factory for models containing vector or image data.
This layer factory only supports one TLcdSLDFeatureTypeStyle. If no
feature type styles are given, no layer is created. If multiple feature type styles are given, an
IllegalArgumentException is thrown.
We set the service priority to a fallback priority so that more specialized (or mixed vector/raster) raster models can be handled by more specialized layer factories.
- Since:
- 2017.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureForSLDStyling(TLcdSLDFeatureTypeStyle aFeatureTypeStyle, TLcdGXYLayer aLayerSFCT) StyleaLayerSFCTusing the specified SLD style.createGXYLayer(ILcdModel aModel, List<TLcdSLDFeatureTypeStyle> aStyles) Creates anILcdGXYLayerfor representing the givenILcdModelon anILcdGXYView, according to the givenTLcdSLDFeatureTypeStyle's.
-
Constructor Details
-
TLcdSLDGXYLayerFactory
public TLcdSLDGXYLayerFactory()
-
-
Method Details
-
createGXYLayer
Description copied from interface:ILcdSLDGXYLayerFactoryCreates anILcdGXYLayerfor representing the givenILcdModelon anILcdGXYView, according to the givenTLcdSLDFeatureTypeStyle's.- Specified by:
createGXYLayerin interfaceILcdSLDGXYLayerFactory- Parameters:
aModel- the model that needs to be visualized in anILcdGXYViewaStyles- 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
nullif a layer cannot be created (e.g. because this layer factory doesn't support the given model).
-
configureForSLDStyling
public static void configureForSLDStyling(TLcdSLDFeatureTypeStyle aFeatureTypeStyle, TLcdGXYLayer aLayerSFCT) Style
aLayerSFCTusing the specified SLD style. This method is a utility method, which is the equivalent of:- Setting a
painter providerandlabel painter providercorresponding to the specified SLD style on the layer. - Setting a
model query configurationbased on the scales present in the SLD on the layer.
- Parameters:
aFeatureTypeStyle- The SLD styleaLayerSFCT- The layer to update
- Setting a
-