Class TLcdGXYLayerTreeNodeFactory

java.lang.Object
com.luciad.view.gxy.TLcdGXYLayerTreeNodeFactory
All Implemented Interfaces:
ILcdGXYLayerFactory

@LcdService(service=ILcdGXYLayerFactory.class, priority=50000) public class TLcdGXYLayerTreeNodeFactory extends Object implements ILcdGXYLayerFactory
Layer factory to create layer nodes with sub-layers (ILcdLayerTreeNode's) for models with sub-models (ILcdModelTreeNode's). It loops over all sub-models and creates a layer for each. To create the sub-layers, it either uses a provided layer factory, or by default, all layer factories registered with the service loader.

It only accepts ILcdModelTreeNode's that are empty, so ones that don't have data in the nodes, only in the leafs. This is by far the most common case. It has a fall back priority to allow more specialized layer factories to overrule this generic implementation.

Since:
2017.0
  • Constructor Details

    • TLcdGXYLayerTreeNodeFactory

      public TLcdGXYLayerTreeNodeFactory()
      Creates a new layer node factory. The sub-layers are created by the layer factories available from the TLcdServiceLoader.
    • TLcdGXYLayerTreeNodeFactory

      public TLcdGXYLayerTreeNodeFactory(Supplier<ILcdGXYLayerFactory> aLeafLayerFactory)
      Creates a new layer node factory. The sub-layers are created by the supplied layer factory. Should there be a hierarchy of layer nodes inside layer nodes, then the nodes will be created by this layer factory, and the leafs by the given factory.
      Parameters:
      aLeafLayerFactory - The layer factory used to create the leafs of the layer tree.
  • Method Details