Class ALcyFormat
- Direct Known Subclasses:
ALcyFormatWrapper,ALcyGeneralFormat
This class provides the basic support facilities for adding another data format to Lucy. It defines factory methods, some abstract, some with a default implementation, that clients are supposed to implement for their specific data format. For instance there is a factory method for the model decoder and layer factory.
The createAll method calls all the factory methods and checks whether the created
objects follow the documented rules. After this method has been called, all the created objects
can be retrieved with the appropriate getters.
None of the implementations of the factory methods are expected to register the created
objects with the Lucy backend. For that you are advised to use the TLcyFormatTool.
You are encouraged to only implement the core functionality of your format into a subclass of
this ALcyFormat, and use one or more ALcyFormatWrapper wrappers to
enable common functionality. For instance, the TLcyAsynchronousFormatWrapper can
enable asynchronous painting for a certain ALcyFormat by wrapping that format.
You are discouraged to subclass this class directly, rather use one of the more specific
extensions such as ALcyGeneralFormat.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates all the instances of the concepts of this class by calling all the abstract factory methods, and performs some validity checks on the created values.protected abstract ILcyAsynchronousPaintHintProviderCreates aILcyAsynchronousPaintHintProviderfor this format.protected ILcdBalloonContentProvider[]Creates theILcdBalloonContentProviders for this format.protected ILcyCustomizerPanelFactory[]Creates theILcyCustomizerPanelFactoryfactories that can createILcyCustomizerPanelinstances to change the value of a single data property of the domain objects created by the model decoders of this format.protected String[][]Creates file type descriptor groups for all decoders.protected ALcyFileTypeDescriptor[]Creates theALcyFileTypeDescriptorinstances corresponding to theALcyFileTypeDescriptorinstances created by this format.protected ALcyDataSourceHandler[]CreatesALcyDataSourceHandler(s) that are more general thanALcyFileTypeDescriptors.protected ALcyDefaultModelDescriptorFactory[]Creates theALcyDefaultModelDescriptorFactorys for this data format.protected ILcyCustomizerPanelFactory[]Creates theILcyCustomizerPanelFactoryfactories that can createILcyCustomizerPanelinstances for the domain objects created by the model decoders of this format.protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances for the domain objects created by the model decoders of this format.protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodecthat can encode and decode theILcyCustomizerPanelinstances for the domain objects produced by the model decoders of this format.protected ALcyFormatBarFactoryCreates theALcyFormatBarFactorythat can create a bar to manipulate layers of this format.protected ILcyCustomizerPanelFactory[]Creates theILcyCustomizerPanelFactoryfactories that can createILcyCustomizerPanelinstances for the layers created by the layer factories of this format.protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances for the layers created by the layer factories of this format.protected ALcyFileTypeDescriptor[]CreatesALcyFileTypeDescriptors for theILcdGXYLayerDecoders.protected ILcdGXYLayerDecoder[]Creates theILcdGXYLayerDecoderdecoders that can decode layers for models created by the model decoders of this format.protected ALcyFileTypeDescriptor[]CreatesALcyFileTypeDescriptors for theILcdGXYLayerEncoders.protected ILcdGXYLayerEncoder[]Creates theILcdGXYLayerEncoderencoders for the layers created by the layer factories of this format.protected abstract ILcdGXYLayerFactoryCreates aILcdGXYLayerFactoryfor this format.final ILcdFilterUtility method to create aILcdFilterthat only acceptsILcdGXYLayers that are accepted byisGXYLayerOfFormat(com.luciad.view.gxy.ILcdGXYLayer).protected ALcyLayerSelectionTransferHandler[]Creates theALcyLayerSelectionTransferHandlertransfer handlers that can transfer the selection of the 2D layers created by the layer factories of this format.protected ILcyLayerStyleProviderCreates the style provider that can retrieve and encode the style of the layers created by the layer factory of this format.protected abstract ILcyGXYLayerTypeProviderCreates anILcyGXYLayerTypeProviderfor this format.protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodeccodecs that can encode and decode the layers created by the layer factories of this format.protected ILcyGXYLabelPlacementHintProviderCreates theILcyLabelPlacementHintProviderthat can create aTLcyGXYLabelPlacementHintfor layers of this format.final ILcdFiltercreateLayerContextOfFormatFilter(boolean aAcceptArrays) Utility method to create aILcdFilterthat only acceptsTLcyLayerContexts whose layers are accepted byisGXYLayerOfFormat(com.luciad.view.gxy.ILcdGXYLayer).protected ILcdLayerHeightProviderFactoryCreates theILcdLayerHeightProviderFactorythat can create anILcdHeightProviderfor this format.protected ILcdLayerMeasureProviderFactoryCreates theILcdLayerMeasureProviderFactoryfor this format.protected abstract ILcyModelContentTypeProviderCreates anILcyModelContentTypeProviderfor this format.final ILcdFilterUtility method to create aILcdFilterthat only acceptsTLcyModelContexts whose model is accepted byisModelOfFormat(com.luciad.model.ILcdModel).protected ILcyCustomizerPanelFactory[]Creates theILcyCustomizerPanelFactory(s) that can createILcyCustomizerPanelinstances to customize the models produced by the model decoders and model factories of this format.protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodecthat can encode and decode theILcyCustomizerPanelinstances for the models produced by this format.protected String[][]Creates file type descriptor groups for all decoders.protected abstract ALcyFileTypeDescriptor[]Creates theALcyFileTypeDescriptorinstances corresponding to theILcdModelDecoderinstances created by this format.protected abstract ILcdModelDecoder[]Creates theILcdModelDecoderdecoders for this data format.protected ILcyCustomizerPanelFactory[]Creates theILcyCustomizerPanelFactoryinstances for theILcdModelEncoderinstances created by this class.protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelthat customize the model encoder instances created by this class.protected ALcyFileTypeDescriptor[]Creates the array ofALcyFileTypeDescriptorinstances for theILcdModelEncoderinstances created by this format.protected ILcdModelEncoder[]Creates the model encoders for this data format.protected ILcdModelFactoryCreates theILcdModelFactoryfor this data format.protected ILcdModelHeightProviderFactoryCreates theILcdModelHeightProviderFactorythat can create anILcdHeightProviderfor this format.protected ILcdModelMeasureProviderFactoryCreates theILcdModelMeasureProviderFactoryfor this format.protected ILcyCustomizerPanelFactory[]Creates theILcyCustomizerPanelFactory(s) that can createILcyCustomizerPanelinstances to customize the meta data of the models produced by the model decoders and model factories of this format.protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodeccodecs that can encode and decode theILcyCustomizerPanelinstances used to customize the meta data of the models produced by this format.final ILcdFilterUtility method to create aILcdFilterthat only acceptsILcdModels that are accepted byisModelOfFormat(com.luciad.model.ILcdModel).protected ALcyWorkspaceObjectCodec[]Creates theALcyWorkspaceObjectCodeccodecs that can encode and decode theILcdModelinstances produces by the model decoders of this format.Returns theILcyAsynchronousPaintHintProviderproviding theTLcyAsynchronousPaintHintfor the layers created by the layer factories of this format.final ILcdBalloonContentProvider[]Returns theILcdBalloonContentProviders created by this format.final ILcyCustomizerPanelFactory[]Creates theILcyCustomizerPanelFactoryfactories that can createILcyCustomizerPanelinstances to change the value of a single data property of the domain objects created by the model decoders of this format.final String[][]Returns the ID's of the groups for theALcyFileTypeDescriptorinstances of theALcyFileTypeDescriptorinstances created by this format.final ALcyFileTypeDescriptor[]Returns the array ofALcyFileTypeDescriptorinstances created by this format for data source handlers.final ALcyDataSourceHandler[]Returns the array ofALcyDataSourceHandlerinstances created by this format.Returns the array ofALcyDefaultModelDescriptorFactoryinstances created by this format.final ILcyCustomizerPanelFactory[]Returns theILcyCustomizerPanelFactoryfactories created by this format that can createILcyCustomizerPanelinstances for the domain objects produced by the model decoders of this format.final ALcyWorkspaceObjectCodec[]Returns theALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances that customize the domain objects produced by the model decoders of this format.final ALcyWorkspaceObjectCodec[]Returns the array ofALcyWorkspaceObjectCodeccodecs created by this format that can encode the domain objects produced by this format.final ALcyFormatBarFactoryReturns theALcyFormatBarFactorythat can create a bar to manipulate layers of this format.final ILcyCustomizerPanelFactory[]Returns theILcyCustomizerPanelFactorys that can createILcyCustomizerPanelinstances for the layers created by the layer factories of this format.final ALcyWorkspaceObjectCodec[]Returns theALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances that customizer the layers created by the layer factories of this format.final ALcyFileTypeDescriptor[]Returns theALcyFileTypeDescriptordescriptors describing the file types of theILcdGXYLayerDecoderinstances created by this format.final ILcdGXYLayerDecoder[]Returns theILcdGXYLayerDecoderdecoders created by this format.final ALcyFileTypeDescriptor[]Returns theALcyFileTypeDescriptordescriptors describing the files for theILcdGXYLayerEncoderencoders created by this format.final ILcdGXYLayerEncoder[]Returns theILcdGXYLayerEncoderencoders that can encode the layers created by the layer factories of this format.final ILcdGXYLayerFactoryReturns theILcdGXYLayerFactorycreated by this format.Returns theALcyLayerSelectionTransferHandlertransfer handlers that can transfer the selection of the 2D layers created by the layer factories of this format.final ILcyLayerStyleProviderReturns theILcdLayerStyleProvidercreated by this format.final ILcyGXYLayerTypeProviderReturns theILcyGXYLayerTypeProvidercreated by this format.final ALcyWorkspaceObjectCodec[]Returns theALcyWorkspaceObjectCodeccodecs that can encode and decode the layers created by the layer factories of this format.Returns theILcyLabelPlacementHintProviderthat can create aTLcyGXYLabelPlacementHintfor a layer of this format.Returns theILcdLayerHeightProviderFactorythat can create anILcdHeightProviderfor this format.Returns theILcdLayerMeasureProviderFactorycreated by this format.abstract StringReturns the long prefix of this format that can be used, for instance, to derive UID's.abstract ILcyLucyEnvReturns theILcyLucyEnvbackend with which thisALcyFormatis associated.Returns theILcyModelContentTypeProvidercreated by this format.final ILcyCustomizerPanelFactory[]Returns theILcyCustomizerPanelFactoryfactories created by this format that can createILcyCustomizerPanelinstances for the models produced by the model decoders and model factories of this format.final ALcyWorkspaceObjectCodec[]Returns the array ofALcyWorkspaceObjectCodeccodecs created by this format that can encodeILcdCustomizerPanelinstances produced by this format.final String[][]Returns the ID's of the groups for theALcyFileTypeDescriptorinstances of theILcdModelDecoderinstances created by this format.final ALcyFileTypeDescriptor[]Returns the array ofALcyFileTypeDescriptorinstances created by this format.final ILcdModelDecoder[]Returns the array ofILcdModelDecoderinstances created by this format.final ILcyCustomizerPanelFactory[]Returns the array ofILcyCustomizerPanelFactoryfactories created by this format.final ALcyWorkspaceObjectCodec[]Returns theALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances that customize the model encoders of this format.final ALcyFileTypeDescriptor[]Returns the array ofALcyFileTypeDescriptorinstances created by this format.final ILcdModelEncoder[]Returns the arrayILcdModelEncoderinstances created by this format.final ILcdModelFactoryReturns theILcdModelFactorycreated by this format.Returns theILcdModelHeightProviderFactorythat can create anILcdHeightProviderfor this format.Returns theILcdModelMeasureProviderFactorycreated by this format.final ILcyCustomizerPanelFactory[]Returns theILcyCustomizerPanelFactoryfactories created by this format that can createILcyCustomizerPanelinstances to customize the meta data for the models produced by the model decoders and model factories of this format.final ALcyWorkspaceObjectCodec[]Returns theALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances that customize the meta data for the models created by this class.final ALcyWorkspaceObjectCodec[]Returns the array ofALcyWorkspaceObjectCodeccodecs created by this format that can encode the state of theILcdModelinstances produced by this format.abstract StringReturns the short prefix of this format that can be used, for instance, to derive keys for aALcyPropertiesinstance.booleanisGXYLayerOfFormat(ILcdGXYLayer aGXYLayer) Returnstrueif and only if the given layer is a layer of the current data format.abstract booleanisModelOfFormat(ILcdModel aModel) Returns true if and only if the given model is a model of the current data format.toString()
-
Constructor Details
-
ALcyFormat
protected ALcyFormat()Creates a newALcyFormat.
-
-
Method Details
-
getLucyEnv
Returns the
ILcyLucyEnvbackend with which thisALcyFormatis associated.- Returns:
- The
ILcyLucyEnvbackend. Must not benull.
-
getLongPrefix
Returns the long prefix of this format that can be used, for instance, to derive UID's. Typically this would be the fully qualified name of the addon.
- Returns:
- The long prefix that can be used to generate UID's. Must not be
null.
-
getShortPrefix
Returns the short prefix of this format that can be used, for instance, to derive keys for a
ALcyPropertiesinstance. This would typically be the short classname of the addon.- Returns:
- The short prefix of this format. Must not be
null.
-
createAll
public void createAll()Creates all the instances of the concepts of this class by calling all the abstract factory methods, and performs some validity checks on the created values. All created instances can later on be retrieved by calling the appropriate
get<Concept>methods. -
getBalloonContentProviders
Returns the
ILcdBalloonContentProviders created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcdBalloonContentProviders created by this format
-
getModelContentTypeProvider
Returns the
ILcyModelContentTypeProvidercreated by this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcyModelContentTypeProvidercreated by this format. - See Also:
-
getModelFactory
Returns the
ILcdModelFactorycreated by this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcdModelFactorycreated by this format. - See Also:
-
getDefaultModelDescriptorFactories
Returns the array of
ALcyDefaultModelDescriptorFactoryinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyDefaultModelDescriptorFactorys created by this format. - See Also:
-
getModelDecoders
Returns the array of
ILcdModelDecoderinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ILcdModelDecoders created by this format. - See Also:
-
getModelDecoderFileTypeDescriptors
Returns the array of
ALcyFileTypeDescriptorinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyFileTypeDescriptorinstances. - See Also:
-
getModelDecoderFileTypeDescriptorGroups
Returns the ID's of the groups for the
ALcyFileTypeDescriptorinstances of theILcdModelDecoderinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The two-dimensional array of ID's of the groups for the
ALcyFileTypeDescriptorinstances. - See Also:
-
getModelEncoders
Returns the array
ILcdModelEncoderinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ILcdModelEncoderinstances.
-
getModelEncoderFileTypeDescriptors
Returns the array of
ALcyFileTypeDescriptorinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyFileTypeDescriptorinstances corresponding to the createdILcdModelEncoderinstances. - See Also:
-
getModelEncoderCustomizerPanelFactories
Returns the array of
ILcyCustomizerPanelFactoryfactories created by this format. Should only be called aftercreateAll()has been called.The created
ILcyCustomizerPanels should work with instances ofTLcyModelEncoderContextin theirsetObjectmethod.- Returns:
- The array of
ILcyCustomizerPanelFactoryfactories. - See Also:
-
getModelEncoderCustomizerPanelWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances that customize the model encoders of this format. Should only be called aftercreateAll()has been called.- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
getModelWorkspaceCodecs
Returns the array of
ALcyWorkspaceObjectCodeccodecs created by this format that can encode the state of theILcdModelinstances produced by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyWorkspaceObjectCodecinstances. - See Also:
-
getDomainObjectWorkspaceCodecs
Returns the array of
ALcyWorkspaceObjectCodeccodecs created by this format that can encode the domain objects produced by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyWorkspaceObjectCodecinstances. - See Also:
-
getModelCustomizerPanelWorkspaceCodecs
Returns the array of
ALcyWorkspaceObjectCodeccodecs created by this format that can encodeILcdCustomizerPanelinstances produced by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyWorkspaceObjectCodecinstances. - See Also:
-
getModelCustomizerPanelFactories
Returns the
ILcyCustomizerPanelFactoryfactories created by this format that can createILcyCustomizerPanelinstances for the models produced by the model decoders and model factories of this format. Should only be called aftercreateAll()has been called.The created
ILcyCustomizerPanels should work with instances ofTLcyModelContextin theirsetObjectmethod.- Returns:
- The array of
ILcyCustomizerPanelFactoryfactories. - See Also:
-
getModelMetaDataCustomizerPanelFactories
Returns the
ILcyCustomizerPanelFactoryfactories created by this format that can createILcyCustomizerPanelinstances to customize the meta data for the models produced by the model decoders and model factories of this format. Should only be called aftercreateAll()has been called.The created
ILcyCustomizerPanels should work with instances ofTLcyModelMetaDataContextin theirsetObjectmethod.- Returns:
- The array of
ILcyCustomizerPanelFactoryfactories. - See Also:
-
getModelMetaDataCustomizerPanelWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances that customize the meta data for the models created by this class. Should only be called aftercreateAll()has been called.- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
getDomainObjectCustomizerPanelFactories
Returns the
ILcyCustomizerPanelFactoryfactories created by this format that can createILcyCustomizerPanelinstances for the domain objects produced by the model decoders of this format. Should only be called aftercreateAll()has been called.The created
ILcyCustomizerPanels should work with instances ofTLcyDomainObjectContextin theirsetObjectmethod.- Returns:
- The array of
ILcyCustomizerPanelFactoryfactories. - See Also:
-
getDomainObjectCustomizerPanelWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances that customize the domain objects produced by the model decoders of this format. Should only be called aftercreateAll()has been called.- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
getGXYLayerTypeProvider
Returns the
ILcyGXYLayerTypeProvidercreated by this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcyGXYLayerTypeProvider. - See Also:
-
getGXYLayerFactory
Returns the
ILcdGXYLayerFactorycreated by this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcdGXYLayerFactory. - See Also:
-
getGXYLayerStyleProvider
Returns the
ILcdLayerStyleProvidercreated by this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcyLayerStyleProvider. - See Also:
-
getGXYLayerDecoders
Returns the
ILcdGXYLayerDecoderdecoders created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ILcdGXYLayerDecoderdecoders. - See Also:
-
getGXYLayerDecoderFileTypeDescriptors
Returns the
ALcyFileTypeDescriptordescriptors describing the file types of theILcdGXYLayerDecoderinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyFileTypeDescriptordescriptors. - See Also:
-
getGXYLayerEncoders
Returns the
ILcdGXYLayerEncoderencoders that can encode the layers created by the layer factories of this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ILcdGXYLayerEncoderencoders. - See Also:
-
getGXYLayerEncoderFileTypeDescriptors
Returns the
ALcyFileTypeDescriptordescriptors describing the files for theILcdGXYLayerEncoderencoders created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyFileTypeDescriptordescriptors. - See Also:
-
getAsynchronousPaintHintProvider
Returns the
ILcyAsynchronousPaintHintProviderproviding theTLcyAsynchronousPaintHintfor the layers created by the layer factories of this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcyAsynchronousPaintHintProvider. - See Also:
-
getGXYLayerWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodeccodecs that can encode and decode the layers created by the layer factories of this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyWorkspaceObjectCodeccodecs. - See Also:
-
getGXYLayerCustomizerPanelFactories
Returns the
ILcyCustomizerPanelFactorys that can createILcyCustomizerPanelinstances for the layers created by the layer factories of this format. Should only be called aftercreateAll()has been called.The created
ILcyCustomizerPanels should work with instances ofTLcyLayerContextin theirsetObjectmethod.- Returns:
- The array of
ILcyCustomizerPanelFactorys. - See Also:
-
getGXYLayerCustomizerPanelWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances that customizer the layers created by the layer factories of this format. Should only be called aftercreateAll()has been called.- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
getGXYLayerSelectionTransferHandlers
Returns the
ALcyLayerSelectionTransferHandlertransfer handlers that can transfer the selection of the 2D layers created by the layer factories of this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyLayerSelectionTransferHandlertransfer handlers. - See Also:
-
getFormatBarFactory
Returns the
ALcyFormatBarFactorythat can create a bar to manipulate layers of this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ALcyFormatBarFactory. - See Also:
-
getLayerHeightProviderFactory
Returns the
ILcdLayerHeightProviderFactorythat can create anILcdHeightProviderfor this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcdLayerHeightProviderFactory - See Also:
-
getModelHeightProviderFactory
Returns the
ILcdModelHeightProviderFactorythat can create anILcdHeightProviderfor this format. Should only be called aftercreateAll()has been called.- Returns:
- The
ILcdModelHeightProviderFactory - See Also:
-
getLabelPlacementHintProvider
Returns theILcyLabelPlacementHintProviderthat can create aTLcyGXYLabelPlacementHintfor a layer of this format. Should only be called aftercreateAll()has been called.- Returns:
- the
ILcyLabelPlacementHintProvider. - See Also:
-
createModelMeasureProviderFactory
Creates the
ILcdModelMeasureProviderFactoryfor this format.The default implementation returns
null.- Returns:
- the
ILcdModelMeasureProviderFactoryfor this format. Can benull. - See Also:
-
getModelMeasureProviderFactory
Returns theILcdModelMeasureProviderFactorycreated by this format. Should only be called aftercreateAll()has been called.- Returns:
- the
ILcdModelMeasureProviderFactorycreated by this format. - See Also:
-
createLayerMeasureProviderFactory
Creates the
ILcdLayerMeasureProviderFactoryfor this format.The default implementation returns
null.- Returns:
- the
ILcdLayerMeasureProviderFactoryfor this format. Can benull. - See Also:
-
getLayerMeasureProviderFactory
Returns theILcdLayerMeasureProviderFactorycreated by this format. Should only be called aftercreateAll()has been called.- Returns:
- the
ILcdLayerMeasureProviderFactorycreated by this format. - See Also:
-
isModelOfFormat
Returns true if and only if the given model is a model of the current data format.- Parameters:
aModel- The model to check.- Returns:
trueif and only if the given model is a model of the current data format.
-
createModelContentTypeProvider
Creates an
ILcyModelContentTypeProviderfor this format.- Returns:
- the
ILcyModelContentTypeProviderfor this data format. May benull. - See Also:
-
createBalloonContentProviders
Creates the
ILcdBalloonContentProviders for this format.The default implementation returns an empty array.
- Returns:
- the
ILcdBalloonContentProviders for this format. Must not benull. The array may be empty but not containnull.
-
createModelFactory
Creates the
ILcdModelFactoryfor this data format. All newly created models of the add-on are expected to be constructed through this factory.- Returns:
- The
ILcdModelFactoryfor this data format. May benull.
-
createDefaultModelDescriptorFactories
Creates the
ALcyDefaultModelDescriptorFactorys for this data format.The default implementation returns a zero-length array.
- Returns:
- The
ALcyDefaultModelDescriptorFactory(or multiple) for this data format. Must not benull, but the array may have length0.
-
createModelDecoders
Creates 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.- Returns:
- The
ILcdModelDecoder(or multiple) for this data format. Must not benull, but the array may have length0. - See Also:
-
createModelDecoderFileTypeDescriptors
Creates the
ALcyFileTypeDescriptorinstances corresponding to theILcdModelDecoderinstances created by this format.- Returns:
- The array of
ALcyFileTypeDescriptorinstances. Must not benull. Its length should be equal to the length of the array created bycreateModelDecoders. It may containnull.
-
createModelDecoderFileTypeDescriptorGroups
Creates file type descriptor groups for all decoders. The groups may be empty, but the group count must equal the decoder count.
- Returns:
- A two-dimensional array containing the groups for the
ALcyFileTypeDescriptorinstances of theILcdModelDecoders. The first dimension must be equal to the length of the array ofILcdModelDecoderinstances created by this format. It must not containnull, but may contain empty arrays.
-
createModelEncoders
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
TLcdStatusOutputStreamFactorymight be useful to implement this method.- Returns:
- An array of
ILcdModelEncoderinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
createModelEncoderFileTypeDescriptors
Creates the array of
ALcyFileTypeDescriptorinstances for theILcdModelEncoderinstances created by this format.- Returns:
- The array of
ALcyFileTypeDescriptorinstances. Must not benulland its length must be equal to the length of the array ofILcdModelEncoderinstances created by this format. May containnull. - See Also:
-
createModelEncoderCustomizerPanelFactories
Creates 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
createModelEncoderCustomizerPanelWorkspaceCodecs(). This is needed if yourILcyCustomizerPanels need to store any specific state in the workspace.- Returns:
- An array of
ILcyCustomizerPanelFactoryinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createModelEncoderCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelthat customize the model encoder instances created by this class.- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
createModelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodeccodecs that can encode and decode theILcdModelinstances produces by the model decoders of this format.- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
createDomainObjectWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodecthat can encode and decode theILcyCustomizerPanelinstances for the domain objects produced by the model decoders of this format.- Returns:
- An array of
ALcyWorkspaceObjectCodecinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createModelCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodecthat can encode and decode theILcyCustomizerPanelinstances for the models produced by this format.- Returns:
- An array of
ALcyWorkspaceObjectCodecinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createModelCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactory(s) that can createILcyCustomizerPanelinstances to customize the models produced by the model decoders and model factories of this format.The created
ILcyCustomizerPanels should work with instances ofTLcyModelContextin theirsetObjectmethod.Hint: When overriding this method, you should also consider overriding
createModelCustomizerPanelWorkspaceCodecs(). This is needed if yourILcyCustomizerPanels need to store any specific state in the workspace.- Returns:
- An array containing the
ILcyCustomizerPanelFactoryinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createModelMetaDataCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactory(s) that can createILcyCustomizerPanelinstances to customize the meta data of the models produced by the model decoders and model factories of this format.The created
ILcyCustomizerPanels should work with instances ofTLcyModelMetaDataContextin theirsetObjectmethod.Hint: When overriding this method, you should also consider overriding
createModelMetaDataCustomizerPanelWorkspaceCodecs(). This is needed if yourILcyCustomizerPanels need to store any specific state in the workspace.- Returns:
- An array containing the
ILcyCustomizerPanelFactoryinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createModelMetaDataCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodeccodecs that can encode and decode theILcyCustomizerPanelinstances used to customize the meta data of the models produced by this format.- Returns:
- An array of
ALcyWorkspaceObjectCodecinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createDomainObjectCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactoryfactories that can createILcyCustomizerPanelinstances for the domain objects created by the model decoders of this format.The created
ILcyCustomizerPanels should work with instances ofTLcyDomainObjectContextin theirsetObjectmethod.Hint: When overriding this method, you should also consider overriding
createDomainObjectCustomizerPanelWorkspaceCodecs(). This is needed if yourILcyCustomizerPanels need to store any specific state in the workspace.- Returns:
- An array containing the
ILcyCustomizerPanelFactoryinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createDomainObjectCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances for the domain objects created by the model decoders of this format.- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
createGXYLayerTypeProvider
Creates an
ILcyGXYLayerTypeProviderfor this format.- Returns:
- A
ILcyGXYLayerTypeProviderfor this data format. May benull. - See Also:
-
createGXYLayerFactory
Creates a
The factory can also configure label algorithms on the created layers.ILcdGXYLayerFactoryfor this format.- Returns:
- the
ILcdGXYLayerFactoryfor this data format. May benull. - See Also:
-
createGXYLayerStyleProvider
Creates the style provider that can retrieve and encode the style of the layers created by the layer factory of this format.- Returns:
- the style provider to retrieve and encode the style of the layers. May be
null
-
createAsynchronousPaintHintProvider
Creates a
ILcyAsynchronousPaintHintProviderfor this format.- Returns:
- A
ILcyAsynchronousPaintHintProviderfor the layers created by the layer factories of this format. May benull. - See Also:
-
createGXYLayerDecoders
Creates the
ILcdGXYLayerDecoderdecoders that can decode layers for models created by the model decoders of this format.The default implementation returns a zero-length array.
It is the responsibility of this method to make sure that the 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.- Returns:
- An array of layer decoders. It must not be
null, but may have length0. It must not containnull. - See Also:
-
createGXYLayerDecoderFileTypeDescriptors
Creates
ALcyFileTypeDescriptors for theILcdGXYLayerDecoders. The length of the returned array must be equal to that ofcreateGXYLayerDecoders().An example usage of these
ALcyFileTypeDescriptorinstances could be to determine whether a style file is located next to source file of a layer, and apply that style when such a layer is created. Most of the default Lucy formats have such a mechanism in place in their layer factory: they look for a style file with the same name as the source file, but with an extension as specified by a non-nullALcyFileTypeDescriptor.The default implementation returns a zero-length array.
- Returns:
- An array of
ALcyFileTypeDescriptorinstances. Must not benulland its length must be equal to the length of the array of layer decoders created by this format. May containnull.
-
createGXYLayerEncoders
Creates the
ILcdGXYLayerEncoderencoders for the layers created by the layer factories of this format.The default implementation returns a zero-length array.
It is the responsibility of this method to make sure that the 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.- Returns:
- An array of
ILcdGXYLayerEncoderinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createGXYLayerEncoderFileTypeDescriptors
Creates
ALcyFileTypeDescriptors for theILcdGXYLayerEncoders. The length of the returned array must be equal to that ofcreateGXYLayerEncoders().An example usage of these
ALcyFileTypeDescriptorinstances is the File | Save layer style action which is available in Lucy. It allows to save the style of a layer to a file ending with an extension as specified by theseALcyFileTypeDescriptors. When noALcyFileTypeDescriptors are available (or onlynullALcyFileTypeDescriptors) it will not be possible to save the layer style to file.The default implementation returns a zero-length array.
- Returns:
- An array of
ALcyFileTypeDescriptorinstances. Must not benulland its length must be equal to the length of the array of layer encoders created by this format. May containnull. - See Also:
-
createGXYLayerWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodeccodecs that can encode and decode the layers created by the layer factories of this format.The default implementation returns a zero-length array.
- Returns:
- An array of
ALcyWorkspaceObjectCodecinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createGXYLayerCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactoryfactories that can createILcyCustomizerPanelinstances for the layers created by the layer factories of this format.The created
ILcyCustomizerPanels should work with instances ofTLcyLayerContextin theirsetObjectmethod.The default implementation returns a zero-length array.
Hint: When overriding this method, you should also consider overriding
createGXYLayerCustomizerPanelWorkspaceCodecs(). This is needed if yourILcyCustomizerPanels need to store any specific state in the workspace.- Returns:
- An array of
ILcyCustomizerPanelFactoryinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createGXYLayerCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodeccodecs for theILcyCustomizerPanelinstances for the layers created by the layer factories of this format.- Returns:
- An array containing the
ALcyWorkspaceObjectCodecinstances. Must not benull, but may have length0. Must not containnull. - See Also:
-
createGXYLayerSelectionTransferHandlers
Creates the
ALcyLayerSelectionTransferHandlertransfer handlers that can transfer the selection of the 2D layers created by the layer factories of this format.The default implementation returns a zero-length array.
- Returns:
- An array of
ALcyLayerSelectionTransferHandlerinstances. Must not benullbut may have length0. Must not containnull. - See Also:
-
createFormatBarFactory
Creates the
ALcyFormatBarFactorythat can create a bar to manipulate layers of this format.The default implementation returns
null.- Returns:
- An
ALcyFormatBarFactory. May benull. - See Also:
-
createLayerHeightProviderFactory
Creates the
ILcdLayerHeightProviderFactorythat can create anILcdHeightProviderfor this format.The default implementation returns
null.- Returns:
- An
ILcdLayerHeightProviderFactory. May benull. - See Also:
-
createModelHeightProviderFactory
Creates the
ILcdModelHeightProviderFactorythat can create anILcdHeightProviderfor this format.The default implementation returns
null.- Returns:
- An
ILcdModelHeightProviderFactory. May benull. - See Also:
-
createLabelPlacementHintProvider
Creates theILcyLabelPlacementHintProviderthat can create aTLcyGXYLabelPlacementHintfor layers of this format.The default implementation returns
null.- Returns:
- An
ILcyLabelPlacementHintProvider. May benull. - See Also:
-
createModelOfFormatFilter
Utility method to create a
ILcdFilterthat only acceptsILcdModels that are accepted byisModelOfFormat(com.luciad.model.ILcdModel).- Returns:
- The
ILcdFilter. Nevernull.
-
createModelContextOfFormatFilter
Utility method to create a
ILcdFilterthat only acceptsTLcyModelContexts whose model is accepted byisModelOfFormat(com.luciad.model.ILcdModel).- Returns:
- The
ILcdFilter.
-
isGXYLayerOfFormat
Returns
trueif and only if the given layer is a layer of the current data format.- Parameters:
aGXYLayer- The layer to check.- Returns:
trueif and only if the given layer is a layer of the current data format.
-
createGXYLayerOfFormatFilter
Utility method to create a
ILcdFilterthat only acceptsILcdGXYLayers that are accepted byisGXYLayerOfFormat(com.luciad.view.gxy.ILcdGXYLayer).- Returns:
- The
ILcdFilter. Nevernull.
-
createLayerContextOfFormatFilter
Utility method to create a
ILcdFilterthat only acceptsTLcyLayerContexts whose layers are accepted byisGXYLayerOfFormat(com.luciad.view.gxy.ILcdGXYLayer).- Parameters:
aAcceptArrays- if true, the filter will also accept arrays ofTLcyLayerContext- Returns:
- The
ILcdFilter.
-
createDataSourceHandlers
Creates
ALcyDataSourceHandler(s) that are more general thanALcyFileTypeDescriptors.- Returns:
- An array containing the
ALcyDataSourceHandlerinstances. Must not benullbut may have length0. Must not containnull.
-
createDataSourceHandlerFileTypeDescriptors
Creates the
ALcyFileTypeDescriptorinstances corresponding to theALcyFileTypeDescriptorinstances created by this format.- Returns:
- The array of
ALcyFileTypeDescriptorinstances. Must not benull. Its length should be equal to the length of the array created bycreateDataSourceHandlers. It may containnull.
-
createDataSourceHandlerFileTypeDescriptorGroups
Creates file type descriptor groups for all decoders. The groups may be empty, but the group count must equal the decoder count.
- Returns:
- A two-dimensional array containing the groups for the
ALcyFileTypeDescriptorinstances of theALcyFileTypeDescriptors. The first dimension must be equal to the length of the array ofALcyFileTypeDescriptorinstances created by this format. It must not containnull, but may contain empty arrays.
-
createDataPropertyValueCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactoryfactories that can createILcyCustomizerPanelinstances to change the value of a single data property of the domain objects created by the model decoders of this format.These customizer panels can for instance be used in the Table view or the Object properties.
The created
ILcyCustomizerPanels should work with instances ofTLcdDataPropertyValueContextin theirsetObjectmethod.The default implementation returns a zero-length array.
- Returns:
- An array of
ILcyCustomizerPanelFactoryinstances. Must not benullbut may have length0. Must not containnull.
-
getDataSourceHandlers
Returns the array of
ALcyDataSourceHandlerinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyDataSourceHandlers created by this format. - See Also:
-
getDataSourceHandlerFileTypeDescriptors
Returns the array of
ALcyFileTypeDescriptorinstances created by this format for data source handlers. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ALcyFileTypeDescriptorinstances for data source handlers. - See Also:
-
getDataSourceHandlerFileTypeDescriptorGroups
Returns the ID's of the groups for the
ALcyFileTypeDescriptorinstances of theALcyFileTypeDescriptorinstances created by this format. Should only be called aftercreateAll()has been called.- Returns:
- The two-dimensional array of ID's of the groups for the
ALcyFileTypeDescriptorinstances. - See Also:
-
toString
-
getDataPropertyValueCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactoryfactories that can createILcyCustomizerPanelinstances to change the value of a single data property of the domain objects created by the model decoders of this format. Should only be called aftercreateAll()has been called.- Returns:
- The array of
ILcyCustomizerPanelFactorys. - See Also:
-