Class TLcyGXYLspAsynchronousFormatWrapper
Decorator for a synchronous ALcyFormat that makes the given format support
asynchronous painting using Lightspeed rendering, if it is supported by the hardware.
To support Lightspeed rendering of layers, this format's layer factory makes use of the
wrapped format's GXY layer factory and a TLcyGXYLspAsynchronousFormatWrapper.GXYLspLayerFactory to produce instances of
TLcdGXYLspAsynchronousLayerWrapper. Please consult their documentation for more
information.
Note that just wrapping a format with this asynchronous decorator isn't enough. If the layers have to be painted asynchronously, the asynchronous add-on needs to be loaded as well.
To support asynchronous ILcdLayerTreeNodes, you should wrap this decorator with a
TLcyGXYLspAsynchronousLayerTreeNodeFormatWrapper.
- Since:
- 2012.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA factory that can create anILspLayerequivalent of a givenILcdGXYLayer. -
Constructor Summary
ConstructorsConstructorDescriptionTLcyGXYLspAsynchronousFormatWrapper(ALcyFormat aFormat, TLcyGXYLspAsynchronousFormatWrapper.GXYLspLayerFactory aGXYLspLayerFactory) Creates a wrapper for the specifiedALcyFormat.TLcyGXYLspAsynchronousFormatWrapper(ALcyFormat aFormat, TLcyGXYLspAsynchronousFormatWrapper.GXYLspLayerFactory aGXYLspLayerFactory, ILcdFilter<ILcdGXYLayer> aLayerFilter) Creates a wrapper for the specifiedALcyFormat. -
Method Summary
Modifier and TypeMethodDescriptionfinal ILcdGXYLayerFactoryCreates aILcdGXYLayerFactoryfor this format.Creates theALcyWorkspaceObjectCodecs that can encode and decode the layers created by the layer factory of this format.Returns theGXYLspLayerFactoryused by this format to produce Lightspeed layers.Methods inherited from class com.luciad.lucy.format.TLcyAsynchronousFormatWrapper
createAsynchronousPaintHintProvider, createDomainObjectCustomizerPanelFactories, createDomainObjectCustomizerPanelWorkspaceCodecs, createGXYLayerCustomizerPanelFactories, createGXYLayerCustomizerPanelWorkspaceCodecs, createGXYLayerDecoders, createGXYLayerEncoders, createGXYLayerSelectionTransferHandlers, createGXYLayerStyleProvider, createGXYLayerTypeProvider, createLabelPlacementHintProvider, createLayerHeightProviderFactory, createModelCustomizerPanelFactories, createModelCustomizerPanelWorkspaceCodecs, createModelEncoderCustomizerPanelFactories, createModelEncoderCustomizerPanelWorkspaceCodecs, createModelMetaDataCustomizerPanelWorkspaceCodecs, isGXYLayerOfFormatMethods inherited from class com.luciad.lucy.format.ALcyFormatWrapper
createAll, createBalloonContentProviders, createDataPropertyValueCustomizerPanelFactories, createDataSourceHandlerFileTypeDescriptorGroups, createDataSourceHandlerFileTypeDescriptors, createDataSourceHandlers, createDefaultModelDescriptorFactories, createDomainObjectWorkspaceCodecs, createFormatBarFactory, createGXYLayerDecoderFileTypeDescriptors, createGXYLayerEncoderFileTypeDescriptors, createLayerMeasureProviderFactory, createModelContentTypeProvider, createModelDecoderFileTypeDescriptorGroups, createModelDecoderFileTypeDescriptors, createModelDecoders, createModelEncoderFileTypeDescriptors, createModelEncoders, createModelFactory, createModelHeightProviderFactory, createModelMeasureProviderFactory, createModelMetaDataCustomizerPanelFactories, createModelWorkspaceCodecs, getFormat, getLongPrefix, getLucyEnv, getShortPrefix, isModelOfFormatMethods 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
-
TLcyGXYLspAsynchronousFormatWrapper
public TLcyGXYLspAsynchronousFormatWrapper(ALcyFormat aFormat, TLcyGXYLspAsynchronousFormatWrapper.GXYLspLayerFactory aGXYLspLayerFactory) Creates a wrapper for the specified
ALcyFormat. All layers of this format will be painted asynchronously, using Lightspeed rendering if the hardware supports it.- Parameters:
aFormat- TheALcyFormatfor which to provide asynchronous painting using Lightspeed rendering.aGXYLspLayerFactory- The factory used to support Lightspeed rendering
-
TLcyGXYLspAsynchronousFormatWrapper
public TLcyGXYLspAsynchronousFormatWrapper(ALcyFormat aFormat, TLcyGXYLspAsynchronousFormatWrapper.GXYLspLayerFactory aGXYLspLayerFactory, ILcdFilter<ILcdGXYLayer> aLayerFilter) Creates a wrapper for the specified
ALcyFormat. All layers of this format will be painted asynchronously, using Lightspeed rendering if the hardware supports it.- Parameters:
aFormat- TheALcyFormatfor which to provide asynchronous painting using Lightspeed renderingaGXYLspLayerFactory- The factory used to support Lightspeed rendering.aLayerFilter- to filter used to determine if the created layers should be painted asynchronously. Ifnull, all created layers are painted asynchronously.
-
-
Method Details
-
createGXYLayerFactory
Creates a
The factory can also configure label algorithms on the created layers.ILcdGXYLayerFactoryfor this format.Combines the wrapped format's GXY layer factory and this format's
GXYLspLayerFactoryinto a single factory that produces asynchronous layers.- Overrides:
createGXYLayerFactoryin classTLcyAsynchronousFormatWrapper- Returns:
- the
ILcdGXYLayerFactoryfor this data format. May benull. - See Also:
-
createGXYLayerWorkspaceCodecs
Creates theALcyWorkspaceObjectCodecs that can encode and decode the layers created by the layer factory of this format. The codecs' methods do not interfere with asynchronous painting.- Overrides:
createGXYLayerWorkspaceCodecsin classTLcyAsynchronousFormatWrapper- Returns:
- An array of
ALcyWorkspaceObjectCodecinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
getLspLayerFactory
Returns theGXYLspLayerFactoryused by this format to produce Lightspeed layers.- Returns:
- The
GXYLspLayerFactoryused by this format to produce Lightspeed layers
-