Class TLcyGXYLayerTreeNodeFormatWrapper
This ALcyFormatWrapper adds support for working with ILcdLayerTreeNode's. When
a TLcdModelList or an 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 ILcdLayerTreeNodes 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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a layer tree node wrapper for the specifiedALcyFormat.TLcyGXYLayerTreeNodeFormatWrapper(ALcyFormat aFormat, ILcdFilter aModelTreeNodeFilter) Deprecated.Creates a layer tree node wrapper for the specifiedALcyFormat, using the given model filter. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Creates a newTLcdGXYLayerTreeNode.createGXYLayerNode(ILcdModel aModel) Deprecated.Creates a newTLcdGXYLayerTreeNodewith modelaModel.protected ILcyCustomizerPanelFactory[]Deprecated.Creates theILcyCustomizerPanelFactoryinstances for theILcdModelEncoderinstances created by this class.protected ILcdModelEncoder[]Deprecated.Creates the model encoders for this data format.protected ALcyWorkspaceObjectCodec[]Deprecated.Creates theALcyWorkspaceObjectCodeccodecs that can encode and decode theILcdModelinstances produces by the model decoders of this format.booleanisGXYLayerTreeNodeOfFormat(ILcdGXYLayer aGXYLayer) Deprecated.Returnstrueif and only if the given layer is anILcdLayerTreeNodeof the current data format.booleanisModelOfFormat(ILcdModel aModel) Deprecated.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, createModelEncoderCustomizerPanelWorkspaceCodecs, createModelEncoderFileTypeDescriptors, createModelFactory, createModelHeightProviderFactory, createModelMeasureProviderFactory, createModelMetaDataCustomizerPanelFactories, createModelMetaDataCustomizerPanelWorkspaceCodecs, getFormat, getLongPrefix, getLucyEnv, getShortPrefix, isGXYLayerOfFormatMethods 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
-
TLcyGXYLayerTreeNodeFormatWrapper
Deprecated.Creates a layer tree node wrapper for the specifiedALcyFormat. Layer tree nodes will be created for allILcdModelTreeNodeandTLcdModelListinstances that belong toaFormat(seeALcyFormat.isModelOfFormat(com.luciad.model.ILcdModel)).- Parameters:
aFormat- TheALcyFormatto decorate. Must not benull.
-
TLcyGXYLayerTreeNodeFormatWrapper
Deprecated.Creates a layer tree node wrapper for the specifiedALcyFormat, using the given model filter. Layer tree nodes will be created for allILcdModelTreeNodeandTLcdModelListinstances that belong toaFormat(seeALcyFormat.isModelOfFormat(com.luciad.model.ILcdModel)). and pass the given filter.- Parameters:
aFormat- TheALcyFormatto decorate. Must not benull.aModelTreeNodeFilter- AnILcdFilterthat decides for whichILcdModelTreeNodeorTLcdModelListinstances to create layer tree nodes.
-
-
Method Details
-
isGXYLayerTreeNodeOfFormat
Deprecated.Returns
trueif and only if the given layer is anILcdLayerTreeNodeof the current data format.- Parameters:
aGXYLayer- the layer to check- Returns:
trueif and only if the given layer is anILcdLayerTreeNodeof the current data format.
-
createModelWorkspaceCodecs
Deprecated.Description copied from class:ALcyFormatCreates the
ALcyWorkspaceObjectCodeccodecs that can encode and decode theILcdModelinstances produces by the model decoders of this format.- Overrides:
createModelWorkspaceCodecsin classALcyFormatWrapper- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
isModelOfFormat
Deprecated.Description copied from class:ALcyFormatReturns true if and only if the given model is a model of the current data format.- Overrides:
isModelOfFormatin classALcyFormatWrapper- Parameters:
aModel- The model to check.- Returns:
trueif and only if the given model is a model of the current data format.
-
createModelEncoders
Deprecated.Description copied from class:ALcyFormatCreates the model encoders for this data format. It is the responsibility of this method to ensure that the given lucy environment listens to status events from the encoder. This method should not register the encoder to the lucy env.
Note that
TLcdStatusOutputStreamFactorymight be useful to implement this method.- Overrides:
createModelEncodersin classALcyFormatWrapper- Returns:
- An array of
ILcdModelEncoderinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
createModelEncoderCustomizerPanelFactories
Deprecated.Description copied from class:ALcyFormatCreates the
ILcyCustomizerPanelFactoryinstances for theILcdModelEncoderinstances created by this class.The created
ILcyCustomizerPanels should work with instances ofTLcyModelEncoderContextin theirsetObjectmethod.Hint: When overriding this method, you should also consider overriding
ALcyFormat.createModelEncoderCustomizerPanelWorkspaceCodecs(). This is needed if yourILcyCustomizerPanels need to store any specific state in the workspace.- Overrides:
createModelEncoderCustomizerPanelFactoriesin classALcyFormatWrapper- Returns:
- An array of
ILcyCustomizerPanelFactoryinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createGXYLayerNode
Deprecated.Creates a new
TLcdGXYLayerTreeNode.If you overwrite it, make sure you're still compatible with the codec
- Returns:
- a new empty
TLcyGXYLayerTreeNodewhich can be encoded/decoded
-
createGXYLayerNode
Deprecated.Creates a new
TLcdGXYLayerTreeNodewith 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
TLcyGXYLayerTreeNodewith modelaModelwhich can be encoded/decoded
-
TLcdModelListandILcdModelTreeNodeinstances. The Lightspeed equivalent of this class (TLcyLspLayerTreeNodeFormatWrapper) is not capable of handlingTLcdModelListinstances, onlyILcdModelTreeNodeinstances. Therefore, if your format usesTLcdModelListinstances, it is recommended to use the following wrapper structure in GXY (new TLcyModelListToTreeNodeFormatWrapper( new TLcyGXYLayerTreeNodeFormatWrapper2( format ) )) and the following structure in Lsp (new TLcyLspLayerTreeNodeFormatWrapper( format )). The GXY wrappers will ensure that theTLcdModelListinstances are converted toILcdModelTreeNodeinstances, which avoids thatTLcdModelListinstances are passed to the Lightspeed format. Consult the class javadoc ofTLcyModelListToTreeNodeFormatWrapperfor more information.