TLcdModelList
and ILcdModelTreeNode
instances. The Lightspeed equivalent of this class (TLcyLspLayerTreeNodeFormatWrapper
) is not capable of handling TLcdModelList
instances,
only ILcdModelTreeNode
instances. Therefore, if your format uses TLcdModelList
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 the TLcdModelList
instances are converted to
ILcdModelTreeNode
instances, which avoids that TLcdModelList
instances are
passed to the Lightspeed format. Consult the class javadoc of
TLcyModelListToTreeNodeFormatWrapper
for
more information.@Deprecated public class TLcyGXYLayerTreeNodeFormatWrapper extends ALcyFormatWrapper
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.
Constructor and Description |
---|
TLcyGXYLayerTreeNodeFormatWrapper(ALcyFormat aFormat)
Deprecated.
Creates a layer tree node wrapper for the specified
ALcyFormat . |
TLcyGXYLayerTreeNodeFormatWrapper(ALcyFormat aFormat,
ILcdFilter aModelTreeNodeFilter)
Deprecated.
Creates a layer tree node wrapper for the specified
ALcyFormat , using the given
model filter. |
Modifier and Type | Method and Description |
---|---|
ILcdLayerTreeNode |
createGXYLayerNode()
Deprecated.
Creates a new
TLcdGXYLayerTreeNode . |
ILcdLayerTreeNode |
createGXYLayerNode(ILcdModel aModel)
Deprecated.
Creates a new
TLcdGXYLayerTreeNode with model aModel . |
protected ILcyCustomizerPanelFactory[] |
createModelEncoderCustomizerPanelFactories()
Deprecated.
Creates the
ILcyCustomizerPanelFactory instances for the
ILcdModelEncoder instances created by this class. |
protected ILcdModelEncoder[] |
createModelEncoders()
Deprecated.
Creates the model encoders for this data format.
|
protected ALcyWorkspaceObjectCodec[] |
createModelWorkspaceCodecs()
Deprecated.
Creates the
ALcyWorkspaceObjectCodec codecs that can encode and decode the
ILcdModel instances produces by the model decoders of this format. |
boolean |
isGXYLayerTreeNodeOfFormat(ILcdGXYLayer aGXYLayer)
Deprecated.
Returns
true if and only if the given layer is an
ILcdLayerTreeNode 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.
|
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
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
public TLcyGXYLayerTreeNodeFormatWrapper(ALcyFormat aFormat)
ALcyFormat
.
Layer tree nodes will be created for all ILcdModelTreeNode
and TLcdModelList
instances that belong to aFormat
(see ALcyFormat.isModelOfFormat(com.luciad.model.ILcdModel)
).aFormat
- The ALcyFormat
to decorate. Must not be null
.public TLcyGXYLayerTreeNodeFormatWrapper(ALcyFormat aFormat, ILcdFilter aModelTreeNodeFilter)
ALcyFormat
, using the given
model filter.
Layer tree nodes will be created for all ILcdModelTreeNode
and TLcdModelList
instances that belong to aFormat
(see ALcyFormat.isModelOfFormat(com.luciad.model.ILcdModel)
).
and pass the given filter.aFormat
- The ALcyFormat
to decorate. Must not be null
.aModelTreeNodeFilter
- An ILcdFilter
that decides for which
ILcdModelTreeNode
or TLcdModelList
instances to create
layer tree nodes.public boolean isGXYLayerTreeNodeOfFormat(ILcdGXYLayer aGXYLayer)
Returns true
if and only if the given layer is an
ILcdLayerTreeNode
of the current data format.
aGXYLayer
- the layer to checktrue
if and only if the given layer is an ILcdLayerTreeNode
of the current data format.protected ALcyWorkspaceObjectCodec[] createModelWorkspaceCodecs()
ALcyFormat
Creates the ALcyWorkspaceObjectCodec
codecs that can encode and decode the
ILcdModel
instances produces by the model decoders of this format.
createModelWorkspaceCodecs
in class ALcyFormatWrapper
ALcyWorkspaceObjectCodec
instances. Must not be
null
, but may have length 0
. Must not contain
null
.TLcySafeGuardFormatWrapper
public boolean isModelOfFormat(ILcdModel aModel)
ALcyFormat
isModelOfFormat
in class ALcyFormatWrapper
aModel
- The model to check.true
if and only if the given model is a model of the current data
format.protected ILcdModelEncoder[] createModelEncoders()
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.
createModelEncoders
in class ALcyFormatWrapper
ILcdModelEncoder
instances. Must not be null
, but
may have length 0
. Must not contain null
.TLcdStatusOutputStreamFactory
protected ILcyCustomizerPanelFactory[] createModelEncoderCustomizerPanelFactories()
ALcyFormat
Creates the ILcyCustomizerPanelFactory
instances for the
ILcdModelEncoder
instances created by this class.
The created ILcyCustomizerPanel
s should work with instances of TLcyModelEncoderContext
in their
setObject
method.
Hint: When overriding this method, you should also consider overriding ALcyFormat.createModelEncoderCustomizerPanelWorkspaceCodecs()
.
This is needed if your ILcyCustomizerPanel
s need to store any specific state in the workspace.
createModelEncoderCustomizerPanelFactories
in class ALcyFormatWrapper
ILcyCustomizerPanelFactory
instances. Must not be
null
but may have length 0
. Must not contain
null
.TLcySafeGuardFormatWrapper
public ILcdLayerTreeNode createGXYLayerNode()
Creates a new TLcdGXYLayerTreeNode
.
If you overwrite it, make sure you're still compatible with the codec
TLcyGXYLayerTreeNode
which can be encoded/decodedpublic ILcdLayerTreeNode createGXYLayerNode(ILcdModel aModel)
Creates a new TLcdGXYLayerTreeNode
with model aModel
.
If you overwrite it, make sure you're still compatible with the codec
aModel
- the model for the layer nodeTLcyGXYLayerTreeNode
with model aModel
which can be
encoded/decoded