Class TLcyModelListToTreeNodeFormatWrapper
This wrapper ensures that every TLcdModelList created by the delegate format is
converted to an ILcdModelTreeNode before the it is passed to the
rest of the Lucy application. This happens when using model
decoders or model factories. This is needed to visualize
data in a Lightspeed view that uses a model decoder that creates TLcdModelList
instances.
This wrapper converts instances of TLcdModelList to instances of
ILcdModelTreeNode. This is often
necessary to display the model in a ILcdLayerTreeNode.
Model lists are wrapped after decoding a model using the model decoder, or after creating a model using the model factory. Model list wrappers are unwrapped when using the model encoder.
Notes:
- Using an
ALcyDataSourceHandlerallowsTLcdModelListinstances to enter the Lucy application. In that case, Lightspeed visualization is not supported. - This format wrapper can be used in combination with
TLcyGXYLayerTreeNodeFormatWrapper2when adding GXY visualization support, or withTLcyLspLayerTreeNodeFormatWrapperwhen adding Lightspeed visualization support. - This format wrapper can not be used in combination with
TLcyGXYLayerTreeNodeFormatWrapper.
- Since:
- 2013.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a model list to tree node wrapper for the specifiedALcyFormat. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcdModelDecoder[]Creates theILcdModelDecoderdecoders for this data format.protected ILcyCustomizerPanelFactory[]Creates theILcyCustomizerPanelFactoryinstances for theILcdModelEncoderinstances created by this class.protected ILcdModelEncoder[]Creates the model encoders for this data format.protected ILcdModelFactoryCreates theILcdModelFactoryfor this data format.protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodeccodecs that can encode and decode theILcdModelinstances produces by the model decoders of this format.booleanisModelOfFormat(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, createModelEncoderCustomizerPanelWorkspaceCodecs, createModelEncoderFileTypeDescriptors, 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
-
TLcyModelListToTreeNodeFormatWrapper
Creates a model list to tree node wrapper for the specifiedALcyFormat. If themodel decodersor themodel factoryof the passed format returns aTLcdModelList, it will be adapted to an instance ofILcdModelTreeNode.- Parameters:
aFormat- TheALcyFormatto decorate. Must not benull.
-
-
Method Details
-
createModelDecoders
Description copied from class:ALcyFormatCreates the
ILcdModelDecoderdecoders for this data format.It's also the responsibility of this method to make sure that the given lucy environment listens to status events from the decoder. This method should not register the decoder to the lucy env.
Note that
TLcdStatusInputStreamFactorymight be useful to implement this method.- Overrides:
createModelDecodersin classALcyFormatWrapper- Returns:
- The
ILcdModelDecoder(or multiple) for this data format. Must not benull, but the array may have length0. - See Also:
-
createModelFactory
Description copied from class:ALcyFormatCreates the
ILcdModelFactoryfor this data format. All newly created models of the add-on are expected to be constructed through this factory.- Overrides:
createModelFactoryin classALcyFormatWrapper- Returns:
- The
ILcdModelFactoryfor this data format. May benull.
-
isModelOfFormat
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
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
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:
-
createModelWorkspaceCodecs
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:
-