Package com.luciad.view.gxy
Interface ILcdGXYLayerFactory
- All Known Implementing Classes:
TLcdAIXM51GXYLayerFactory
,TLcdAIXMDefaultLayerFactory
,TLcdARINCDefaultLayerFactory
,TLcdBingMapsGXYLayerFactory
,TLcdBUFRGXYLayerFactory
,TLcdCompositeGXYLayerFactory
,TLcdDAFIFDefaultLayerFactory
,TLcdDGNGXYLayerFactory
,TLcdDWGGXYLayerFactory
,TLcdFeaturedPointGXYLayerCodec
,TLcdFeaturedPolygonGXYLayerCodec
,TLcdFeaturedPolylineGXYLayerCodec
,TLcdGXYLayerTreeNodeFactory
,TLcdKML22GXYLayerFactory
,TLcdMagneticNorthGXYLayerFactory
,TLcdMGCPGXYLayerFactory
,TLcdMIFGXYLayerFactory
,TLcdMultilevelRasterGXYLayerCodec
,TLcdNetCDFGXYLayerFactory
,TLcdNITFGXYLayerFactory
,TLcdNVGGXYLayerFactory
,TLcdRasterGXYLayerCodec
,TLcdS52GXYLayerFactory
,TLcdSLDFileGXYLayerFactory
,TLcdVPFGXYLayerFactory
,TLcdWMSProxyGXYLayerFactory
,TLcdWMTSGXYLayerFactory
,TLcyCompositeGXYLayerFactory
,TLcyGXYAsynchronousLayerFactory
public interface ILcdGXYLayerFactory
Creates an
ILcdGXYLayer
for representing an ILcdModel
on an ILcdGXYView
.
Representing means how it is visualized, but also how it behaves during graphical editing, or how its labels should
appear.
Implementing it
Typical implementations first verify if the given model is a good match, and create a layer if so. They then configure the layer with a painter, and optionally an editor and a label painter.TLcdGXYLayer.asFactory(Predicate, Consumer)
may come in useful.
Making use of it
There are a number of usage patterns:- Use a specific factory instance to create a layer, and add the layer to a view.
- Add a model to a view directly, the view in turn uses its associated layer factory to create the layer.
- Use any of the layer factories from the service loader. This list is pre-populated with sensible defaults for
most types of models, and is often a good starting point:
You can register your own instances to the service loader as well, seenew TLcdCompositeGXYLayerFactory(TLcdServiceLoader.getInstance(ILcdGXYLayerFactory.class))
LcdService
.
-
Method Summary
Modifier and TypeMethodDescriptioncreateGXYLayer
(ILcdModel aModel) Creates anILcdGXYLayer
for representing anILcdModel
on anILcdGXYView
.
-
Method Details
-
createGXYLayer
Creates anILcdGXYLayer
for representing anILcdModel
on anILcdGXYView
.- Parameters:
aModel
- a model that needs to be visualized in anILcdGXYView
- Returns:
- a layer representing the given model, or
null
if such a layer cannot be created - See Also:
-