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
ALcyDataSourceHandler
allowsTLcdModelList
instances to enter the Lucy application. In that case, Lightspeed visualization is not supported. - This format wrapper can be used in combination with
TLcyGXYLayerTreeNodeFormatWrapper2
when adding GXY visualization support, or withTLcyLspLayerTreeNodeFormatWrapper
when adding Lightspeed visualization support. - This format wrapper can not be used in combination with
TLcyGXYLayerTreeNodeFormatWrapper
.
- Since:
- 2013.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a model list to tree node wrapper for the specifiedALcyFormat
. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILcdModelDecoder[]
Creates theILcdModelDecoder
decoders for this data format.protected ILcyCustomizerPanelFactory[]
Creates theILcyCustomizerPanelFactory
instances for theILcdModelEncoder
instances created by this class.protected ILcdModelEncoder[]
Creates the model encoders for this data format.protected ILcdModelFactory
Creates theILcdModelFactory
for this data format.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
codecs that can encode and decode theILcdModel
instances produces by the model decoders of this 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, createModelEncoderCustomizerPanelWorkspaceCodecs, createModelEncoderFileTypeDescriptors, createModelHeightProviderFactory, createModelMeasureProviderFactory, createModelMetaDataCustomizerPanelFactories, createModelMetaDataCustomizerPanelWorkspaceCodecs, 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
-
TLcyModelListToTreeNodeFormatWrapper
Creates a model list to tree node wrapper for the specifiedALcyFormat
. If themodel decoders
or themodel factory
of the passed format returns aTLcdModelList
, it will be adapted to an instance ofILcdModelTreeNode
.- Parameters:
aFormat
- TheALcyFormat
to decorate. Must not benull
.
-
-
Method Details
-
createModelDecoders
Description copied from class:ALcyFormat
Creates the
ILcdModelDecoder
decoders 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
TLcdStatusInputStreamFactory
might be useful to implement this method.- Overrides:
createModelDecoders
in 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:ALcyFormat
Creates the
ILcdModelFactory
for this data format. All newly created models of the add-on are expected to be constructed through this factory.- Overrides:
createModelFactory
in classALcyFormatWrapper
- Returns:
- The
ILcdModelFactory
for this data format. May benull
.
-
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.
-
createModelEncoders
Description copied from class:ALcyFormat
Creates 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
TLcdStatusOutputStreamFactory
might be useful to implement this method.- Overrides:
createModelEncoders
in classALcyFormatWrapper
- Returns:
- An array of
ILcdModelEncoder
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
createModelEncoderCustomizerPanelFactories
Description copied from class:ALcyFormat
Creates the
ILcyCustomizerPanelFactory
instances for theILcdModelEncoder
instances created by this class.The created
ILcyCustomizerPanel
s should work with instances ofTLcyModelEncoderContext
in theirsetObject
method.Hint: When overriding this method, you should also consider overriding
ALcyFormat.createModelEncoderCustomizerPanelWorkspaceCodecs()
. This is needed if yourILcyCustomizerPanel
s need to store any specific state in the workspace.- Overrides:
createModelEncoderCustomizerPanelFactories
in classALcyFormatWrapper
- Returns:
- An array of
ILcyCustomizerPanelFactory
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createModelWorkspaceCodecs
Description copied from class:ALcyFormat
Creates the
ALcyWorkspaceObjectCodec
codecs that can encode and decode theILcdModel
instances produces by the model decoders of this format.- Overrides:
createModelWorkspaceCodecs
in classALcyFormatWrapper
- Returns:
- An array containing the
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-