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:
    new TLcdCompositeGXYLayerFactory(TLcdServiceLoader.getInstance(ILcdGXYLayerFactory.class))
    You can register your own instances to the service loader as well, see LcdService.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an ILcdGXYLayer for representing an ILcdModel on an ILcdGXYView.