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 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.
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated.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 newTLcdGXYLayerTreeNode
with modelaModel
.protected ILcyCustomizerPanelFactory[]
Deprecated.Creates theILcyCustomizerPanelFactory
instances for theILcdModelEncoder
instances created by this class.protected ILcdModelEncoder[]
Deprecated.Creates the model encoders for this data format.protected ALcyWorkspaceObjectCodec[]
Deprecated.Creates theALcyWorkspaceObjectCodec
codecs that can encode and decode theILcdModel
instances produces by the model decoders of this format.boolean
isGXYLayerTreeNodeOfFormat
(ILcdGXYLayer aGXYLayer) Deprecated.Returnstrue
if and only if the given layer is anILcdLayerTreeNode
of the current data format.boolean
isModelOfFormat
(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, 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
-
TLcyGXYLayerTreeNodeFormatWrapper
Deprecated.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
.
-
TLcyGXYLayerTreeNodeFormatWrapper
Deprecated.Creates a layer tree node wrapper for the specifiedALcyFormat
, using the given model filter. Layer tree nodes will be created for allILcdModelTreeNode
andTLcdModelList
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
orTLcdModelList
instances to create layer tree nodes.
-
-
Method Details
-
isGXYLayerTreeNodeOfFormat
Deprecated.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.
-
createModelWorkspaceCodecs
Deprecated.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:
-
isModelOfFormat
Deprecated.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
Deprecated.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
Deprecated.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:
-
createGXYLayerNode
Deprecated.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
Deprecated.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
-
TLcdModelList
andILcdModelTreeNode
instances. The Lightspeed equivalent of this class (TLcyLspLayerTreeNodeFormatWrapper
) is not capable of handlingTLcdModelList
instances, onlyILcdModelTreeNode
instances. Therefore, if your format usesTLcdModelList
instances, 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 theTLcdModelList
instances are converted toILcdModelTreeNode
instances, which avoids thatTLcdModelList
instances are passed to the Lightspeed format. Consult the class javadoc ofTLcyModelListToTreeNodeFormatWrapper
for more information.