@LcdService(priority=20100) public class TLcdSLDFileGXYLayerFactory extends Object implements ILcdGXYLayerFactory
Layer factory that creates SLD styled layers if the data source file is accompanied by an SLD (.sld) file.
If no matching SLD file is found, this layer factory returns null
. This layer factory uses a naming
convention to look for an SLD file. When a file is named "<fileName>.<ext>"
, it will look for an SLD file
called "<fileName>.sld"
. I.e. it will replace the extension by the "sld"
extension, and check
if such a file exists.
TLcdSLDFeatureTypeStyleDecoder
Constructor and Description |
---|
TLcdSLDFileGXYLayerFactory()
Creates a new
TLcdSLDFileGXYLayerFactory that uses the service loader
to retrieve ILcdSLDGXYLayerFactory instance to delegate to. |
TLcdSLDFileGXYLayerFactory(Supplier<ILcdSLDGXYLayerFactory> aDelegateLayerFactorySupplier)
Creates a new
TLcdSLDFileGXYLayerFactory that delegates to the supplied ILcdSLDGXYLayerFactory to create a layer using the decoded TLcdSLDFeatureTypeStyle . |
Modifier and Type | Method and Description |
---|---|
ILcdGXYLayer |
createGXYLayer(ILcdModel aModel)
Creates an SLD styled layer if the model's source file is accompanied by an SLD (.sld) file.
|
public TLcdSLDFileGXYLayerFactory()
TLcdSLDFileGXYLayerFactory
that uses the service loader
to retrieve ILcdSLDGXYLayerFactory
instance to delegate to.public TLcdSLDFileGXYLayerFactory(Supplier<ILcdSLDGXYLayerFactory> aDelegateLayerFactorySupplier)
TLcdSLDFileGXYLayerFactory
that delegates to the supplied ILcdSLDGXYLayerFactory
to create a layer using the decoded TLcdSLDFeatureTypeStyle
.aDelegateLayerFactorySupplier
- a delegate SLD layer factory supplierpublic ILcdGXYLayer createGXYLayer(ILcdModel aModel)
createGXYLayer
in interface ILcdGXYLayerFactory
aModel
- a model that needs to be visualized in an ILcdGXYView
TLcdGXYViewJPanel.setGXYLayerFactory(com.luciad.view.gxy.ILcdGXYLayerFactory)