Class TLcyGXYLayerTreeNodeFormatWrapper2
This ALcyFormatWrapper
adds support for working with ILcdLayerTreeNode's. When
a ILcdModelTreeNode
is given to its ILcdGXYLayerFactory
it automatically
creates a matching layer tree node structure. The creation of the layers for the sub-models is
left to the delegate ALcyFormat
.
Consider this model structure:
ILcdModelTreeNode-A
| |
ILcdModelTreeNode-B ILcdModel-E
| |
ILcdModel-C ILcdModel-D
A matching structure of ILcdLayerTreeNode
s is created. The layer nodes for A and B
are created by this wrapper, the creation of the (regular) layers for the models C, D and E are left
to the wrapped format.
It also adds workspace support for the layer nodes it creates.
Limitations
It assumes actual data is only present in the leafs of the model structure, not in the nodes
itself.
Note: This implementation can not handle models that are an instance of
TLcdModelList
. To avoid problems, wrap a format that
uses model lists in a TLcyModelListToTreeNodeFormatWrapper
before wrapping it in this
format wrapper.
- Since:
- 2013.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a layer tree node wrapper for the specifiedALcyFormat
.TLcyGXYLayerTreeNodeFormatWrapper2
(ALcyFormat aFormat, ILcdFilter<ILcdModelTreeNode> aModelTreeNodeFilter) Creates a layer tree node wrapper for the specifiedALcyFormat
, using the given model filter. -
Method Summary
Modifier and TypeMethodDescriptionCreates a newTLcdGXYLayerTreeNode
.createGXYLayerNode
(ILcdModel aModel) Creates a newTLcdGXYLayerTreeNode
with modelaModel
.boolean
isGXYLayerTreeNodeOfFormat
(ILcdGXYLayer aGXYLayer) Returnstrue
if and only if the given layer is anILcdLayerTreeNode
of the current data format.boolean
isModelOfFormat
(ILcdModel aModel) Returns true if and only if the given model is a model of the current data format.Methods inherited from class com.luciad.lucy.format.ALcyFormatWrapper
createAll, createAsynchronousPaintHintProvider, createBalloonContentProviders, createDataPropertyValueCustomizerPanelFactories, createDataSourceHandlerFileTypeDescriptorGroups, createDataSourceHandlerFileTypeDescriptors, createDataSourceHandlers, createDefaultModelDescriptorFactories, createDomainObjectCustomizerPanelFactories, createDomainObjectCustomizerPanelWorkspaceCodecs, createDomainObjectWorkspaceCodecs, createFormatBarFactory, createGXYLayerCustomizerPanelFactories, createGXYLayerCustomizerPanelWorkspaceCodecs, createGXYLayerDecoderFileTypeDescriptors, createGXYLayerDecoders, createGXYLayerEncoderFileTypeDescriptors, createGXYLayerEncoders, createGXYLayerFactory, createGXYLayerSelectionTransferHandlers, createGXYLayerStyleProvider, createGXYLayerTypeProvider, createGXYLayerWorkspaceCodecs, createLabelPlacementHintProvider, createLayerHeightProviderFactory, createLayerMeasureProviderFactory, createModelContentTypeProvider, createModelCustomizerPanelFactories, createModelCustomizerPanelWorkspaceCodecs, createModelDecoderFileTypeDescriptorGroups, createModelDecoderFileTypeDescriptors, createModelDecoders, createModelEncoderCustomizerPanelFactories, createModelEncoderCustomizerPanelWorkspaceCodecs, createModelEncoderFileTypeDescriptors, createModelEncoders, createModelFactory, createModelHeightProviderFactory, createModelMeasureProviderFactory, createModelMetaDataCustomizerPanelFactories, createModelMetaDataCustomizerPanelWorkspaceCodecs, createModelWorkspaceCodecs, getFormat, getLongPrefix, getLucyEnv, getShortPrefix, isGXYLayerOfFormat
Methods inherited from class com.luciad.lucy.format.ALcyFormat
createGXYLayerOfFormatFilter, createLayerContextOfFormatFilter, createModelContextOfFormatFilter, createModelOfFormatFilter, getAsynchronousPaintHintProvider, getBalloonContentProviders, getDataPropertyValueCustomizerPanelFactories, getDataSourceHandlerFileTypeDescriptorGroups, getDataSourceHandlerFileTypeDescriptors, getDataSourceHandlers, getDefaultModelDescriptorFactories, getDomainObjectCustomizerPanelFactories, getDomainObjectCustomizerPanelWorkspaceCodecs, getDomainObjectWorkspaceCodecs, getFormatBarFactory, getGXYLayerCustomizerPanelFactories, getGXYLayerCustomizerPanelWorkspaceCodecs, getGXYLayerDecoderFileTypeDescriptors, getGXYLayerDecoders, getGXYLayerEncoderFileTypeDescriptors, getGXYLayerEncoders, getGXYLayerFactory, getGXYLayerSelectionTransferHandlers, getGXYLayerStyleProvider, getGXYLayerTypeProvider, getGXYLayerWorkspaceCodecs, getLabelPlacementHintProvider, getLayerHeightProviderFactory, getLayerMeasureProviderFactory, getModelContentTypeProvider, getModelCustomizerPanelFactories, getModelCustomizerPanelWorkspaceCodecs, getModelDecoderFileTypeDescriptorGroups, getModelDecoderFileTypeDescriptors, getModelDecoders, getModelEncoderCustomizerPanelFactories, getModelEncoderCustomizerPanelWorkspaceCodecs, getModelEncoderFileTypeDescriptors, getModelEncoders, getModelFactory, getModelHeightProviderFactory, getModelMeasureProviderFactory, getModelMetaDataCustomizerPanelFactories, getModelMetaDataCustomizerPanelWorkspaceCodecs, getModelWorkspaceCodecs, toString
-
Constructor Details
-
TLcyGXYLayerTreeNodeFormatWrapper2
Creates a layer tree node wrapper for the specifiedALcyFormat
. Layer tree nodes will be created for allILcdModelTreeNode
andTLcdModelList
instances that belong toaFormat
(seeALcyFormat.isModelOfFormat(com.luciad.model.ILcdModel)
).- Parameters:
aFormat
- TheALcyFormat
to decorate. Must not benull
.
-
TLcyGXYLayerTreeNodeFormatWrapper2
public TLcyGXYLayerTreeNodeFormatWrapper2(ALcyFormat aFormat, ILcdFilter<ILcdModelTreeNode> aModelTreeNodeFilter) Creates a layer tree node wrapper for the specifiedALcyFormat
, using the given model filter. Layer tree nodes will be created for allILcdModelTreeNode
instances that belong toaFormat
(seeALcyFormat.isModelOfFormat(com.luciad.model.ILcdModel)
) and pass the given filter.- Parameters:
aFormat
- TheALcyFormat
to decorate. Must not benull
.aModelTreeNodeFilter
- AnILcdFilter
that decides for whichILcdModelTreeNode
instances to create layer tree nodes.
-
-
Method Details
-
isGXYLayerTreeNodeOfFormat
Returns
true
if and only if the given layer is anILcdLayerTreeNode
of the current data format.- Parameters:
aGXYLayer
- the layer to check- Returns:
true
if and only if the given layer is anILcdLayerTreeNode
of the current data format.
-
createGXYLayerNode
Creates a new
TLcdGXYLayerTreeNode
.If you overwrite it, make sure you're still compatible with the codec
- Returns:
- a new empty
TLcyGXYLayerTreeNode
which can be encoded/decoded
-
createGXYLayerNode
Creates a new
TLcdGXYLayerTreeNode
with modelaModel
.If you overwrite it, make sure you're still compatible with the codec
- Parameters:
aModel
- the model for the layer node- Returns:
- a new
TLcyGXYLayerTreeNode
with modelaModel
which can be encoded/decoded
-
isModelOfFormat
Description copied from class:ALcyFormat
Returns true if and only if the given model is a model of the current data format.- Overrides:
isModelOfFormat
in classALcyFormatWrapper
- Parameters:
aModel
- The model to check.- Returns:
true
if and only if the given model is a model of the current data format.
-