Package com.luciad.view.gxy
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 Summary
ConstructorDescriptionCreates a new layer node factory.TLcdGXYLayerTreeNodeFactory
(Supplier<ILcdGXYLayerFactory> aLeafLayerFactory) Creates a new layer node factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateGXYLayer
(ILcdModel aModel) Creates anILcdGXYLayer
for representing anILcdModel
on anILcdGXYView
.
-
Constructor Details
-
TLcdGXYLayerTreeNodeFactory
public TLcdGXYLayerTreeNodeFactory()Creates a new layer node factory. The sub-layers are created by the layer factories available from theTLcdServiceLoader
. -
TLcdGXYLayerTreeNodeFactory
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
-
createGXYLayer
Description copied from interface:ILcdGXYLayerFactory
Creates anILcdGXYLayer
for representing anILcdModel
on anILcdGXYView
.- Specified by:
createGXYLayer
in interfaceILcdGXYLayerFactory
- 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:
-