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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.protected abstract ILcyAsynchronousPaintHintProvider
Creates aILcyAsynchronousPaintHintProvider
for this format.protected ILcdBalloonContentProvider[]
Creates theILcdBalloonContentProvider
s for this format.protected ILcyCustomizerPanelFactory[]
Creates theILcyCustomizerPanelFactory
factories that can createILcyCustomizerPanel
instances 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 theALcyFileTypeDescriptor
instances corresponding to theALcyFileTypeDescriptor
instances created by this format.protected ALcyDataSourceHandler[]
CreatesALcyDataSourceHandler
(s) that are more general thanALcyFileTypeDescriptor
s.protected ALcyDefaultModelDescriptorFactory[]
Creates theALcyDefaultModelDescriptorFactory
s for this data format.protected ILcyCustomizerPanelFactory[]
Creates theILcyCustomizerPanelFactory
factories that can createILcyCustomizerPanel
instances for the domain objects created by the model decoders of this format.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances for the domain objects created by the model decoders of this format.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
that can encode and decode theILcyCustomizerPanel
instances for the domain objects produced by the model decoders of this format.protected ALcyFormatBarFactory
Creates theALcyFormatBarFactory
that can create a bar to manipulate layers of this format.protected ILcyCustomizerPanelFactory[]
Creates theILcyCustomizerPanelFactory
factories that can createILcyCustomizerPanel
instances for the layers created by the layer factories of this format.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances for the layers created by the layer factories of this format.protected ALcyFileTypeDescriptor[]
CreatesALcyFileTypeDescriptor
s for theILcdGXYLayerDecoder
s.protected ILcdGXYLayerDecoder[]
Creates theILcdGXYLayerDecoder
decoders that can decode layers for models created by the model decoders of this format.protected ALcyFileTypeDescriptor[]
CreatesALcyFileTypeDescriptor
s for theILcdGXYLayerEncoder
s.protected ILcdGXYLayerEncoder[]
Creates theILcdGXYLayerEncoder
encoders for the layers created by the layer factories of this format.protected abstract ILcdGXYLayerFactory
Creates aILcdGXYLayerFactory
for this format.final ILcdFilter
Utility method to create aILcdFilter
that only acceptsILcdGXYLayer
s that are accepted byisGXYLayerOfFormat(com.luciad.view.gxy.ILcdGXYLayer)
.protected ALcyLayerSelectionTransferHandler[]
Creates theALcyLayerSelectionTransferHandler
transfer handlers that can transfer the selection of the 2D layers created by the layer factories of this format.protected ILcyLayerStyleProvider
Creates the style provider that can retrieve and encode the style of the layers created by the layer factory of this format.protected abstract ILcyGXYLayerTypeProvider
Creates anILcyGXYLayerTypeProvider
for this format.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
codecs that can encode and decode the layers created by the layer factories of this format.protected ILcyGXYLabelPlacementHintProvider
Creates theILcyLabelPlacementHintProvider
that can create aTLcyGXYLabelPlacementHint
for layers of this format.final ILcdFilter
createLayerContextOfFormatFilter
(boolean aAcceptArrays) Utility method to create aILcdFilter
that only acceptsTLcyLayerContext
s whose layers are accepted byisGXYLayerOfFormat(com.luciad.view.gxy.ILcdGXYLayer)
.protected ILcdLayerHeightProviderFactory
Creates theILcdLayerHeightProviderFactory
that can create anILcdHeightProvider
for this format.protected ILcdLayerMeasureProviderFactory
Creates theILcdLayerMeasureProviderFactory
for this format.protected abstract ILcyModelContentTypeProvider
Creates anILcyModelContentTypeProvider
for this format.final ILcdFilter
Utility method to create aILcdFilter
that only acceptsTLcyModelContext
s whose model is accepted byisModelOfFormat(com.luciad.model.ILcdModel)
.protected ILcyCustomizerPanelFactory[]
Creates theILcyCustomizerPanelFactory
(s) that can createILcyCustomizerPanel
instances to customize the models produced by the model decoders and model factories of this format.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
that can encode and decode theILcyCustomizerPanel
instances for the models produced by this format.protected String[][]
Creates file type descriptor groups for all decoders.protected abstract ALcyFileTypeDescriptor[]
Creates theALcyFileTypeDescriptor
instances corresponding to theILcdModelDecoder
instances created by this format.protected abstract ILcdModelDecoder[]
Creates theILcdModelDecoder
decoders for this data format.protected ILcyCustomizerPanelFactory[]
Creates theILcyCustomizerPanelFactory
instances for theILcdModelEncoder
instances created by this class.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
that customize the model encoder instances created by this class.protected ALcyFileTypeDescriptor[]
Creates the array ofALcyFileTypeDescriptor
instances for theILcdModelEncoder
instances created by this format.protected ILcdModelEncoder[]
Creates the model encoders for this data format.protected ILcdModelFactory
Creates theILcdModelFactory
for this data format.protected ILcdModelHeightProviderFactory
Creates theILcdModelHeightProviderFactory
that can create anILcdHeightProvider
for this format.protected ILcdModelMeasureProviderFactory
Creates theILcdModelMeasureProviderFactory
for this format.protected ILcyCustomizerPanelFactory[]
Creates theILcyCustomizerPanelFactory
(s) that can createILcyCustomizerPanel
instances to customize the meta data of the models produced by the model decoders and model factories of this format.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
codecs that can encode and decode theILcyCustomizerPanel
instances used to customize the meta data of the models produced by this format.final ILcdFilter
Utility method to create aILcdFilter
that only acceptsILcdModel
s that are accepted byisModelOfFormat(com.luciad.model.ILcdModel)
.protected ALcyWorkspaceObjectCodec[]
Creates theALcyWorkspaceObjectCodec
codecs that can encode and decode theILcdModel
instances produces by the model decoders of this format.Returns theILcyAsynchronousPaintHintProvider
providing theTLcyAsynchronousPaintHint
for the layers created by the layer factories of this format.final ILcdBalloonContentProvider[]
Returns theILcdBalloonContentProvider
s created by this format.final ILcyCustomizerPanelFactory[]
Creates theILcyCustomizerPanelFactory
factories that can createILcyCustomizerPanel
instances 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 theALcyFileTypeDescriptor
instances of theALcyFileTypeDescriptor
instances created by this format.final ALcyFileTypeDescriptor[]
Returns the array ofALcyFileTypeDescriptor
instances created by this format for data source handlers.final ALcyDataSourceHandler[]
Returns the array ofALcyDataSourceHandler
instances created by this format.Returns the array ofALcyDefaultModelDescriptorFactory
instances created by this format.final ILcyCustomizerPanelFactory[]
Returns theILcyCustomizerPanelFactory
factories created by this format that can createILcyCustomizerPanel
instances for the domain objects produced by the model decoders of this format.final ALcyWorkspaceObjectCodec[]
Returns theALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances that customize the domain objects produced by the model decoders of this format.final ALcyWorkspaceObjectCodec[]
Returns the array ofALcyWorkspaceObjectCodec
codecs created by this format that can encode the domain objects produced by this format.final ALcyFormatBarFactory
Returns theALcyFormatBarFactory
that can create a bar to manipulate layers of this format.final ILcyCustomizerPanelFactory[]
Returns theILcyCustomizerPanelFactory
s that can createILcyCustomizerPanel
instances for the layers created by the layer factories of this format.final ALcyWorkspaceObjectCodec[]
Returns theALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances that customizer the layers created by the layer factories of this format.final ALcyFileTypeDescriptor[]
Returns theALcyFileTypeDescriptor
descriptors describing the file types of theILcdGXYLayerDecoder
instances created by this format.final ILcdGXYLayerDecoder[]
Returns theILcdGXYLayerDecoder
decoders created by this format.final ALcyFileTypeDescriptor[]
Returns theALcyFileTypeDescriptor
descriptors describing the files for theILcdGXYLayerEncoder
encoders created by this format.final ILcdGXYLayerEncoder[]
Returns theILcdGXYLayerEncoder
encoders that can encode the layers created by the layer factories of this format.final ILcdGXYLayerFactory
Returns theILcdGXYLayerFactory
created by this format.Returns theALcyLayerSelectionTransferHandler
transfer handlers that can transfer the selection of the 2D layers created by the layer factories of this format.final ILcyLayerStyleProvider
Returns theILcdLayerStyleProvider
created by this format.final ILcyGXYLayerTypeProvider
Returns theILcyGXYLayerTypeProvider
created by this format.final ALcyWorkspaceObjectCodec[]
Returns theALcyWorkspaceObjectCodec
codecs that can encode and decode the layers created by the layer factories of this format.Returns theILcyLabelPlacementHintProvider
that can create aTLcyGXYLabelPlacementHint
for a layer of this format.Returns theILcdLayerHeightProviderFactory
that can create anILcdHeightProvider
for this format.Returns theILcdLayerMeasureProviderFactory
created by this format.abstract String
Returns the long prefix of this format that can be used, for instance, to derive UID's.abstract ILcyLucyEnv
Returns theILcyLucyEnv
backend with which thisALcyFormat
is associated.Returns theILcyModelContentTypeProvider
created by this format.final ILcyCustomizerPanelFactory[]
Returns theILcyCustomizerPanelFactory
factories created by this format that can createILcyCustomizerPanel
instances for the models produced by the model decoders and model factories of this format.final ALcyWorkspaceObjectCodec[]
Returns the array ofALcyWorkspaceObjectCodec
codecs created by this format that can encodeILcdCustomizerPanel
instances produced by this format.final String[][]
Returns the ID's of the groups for theALcyFileTypeDescriptor
instances of theILcdModelDecoder
instances created by this format.final ALcyFileTypeDescriptor[]
Returns the array ofALcyFileTypeDescriptor
instances created by this format.final ILcdModelDecoder[]
Returns the array ofILcdModelDecoder
instances created by this format.final ILcyCustomizerPanelFactory[]
Returns the array ofILcyCustomizerPanelFactory
factories created by this format.final ALcyWorkspaceObjectCodec[]
Returns theALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances that customize the model encoders of this format.final ALcyFileTypeDescriptor[]
Returns the array ofALcyFileTypeDescriptor
instances created by this format.final ILcdModelEncoder[]
Returns the arrayILcdModelEncoder
instances created by this format.final ILcdModelFactory
Returns theILcdModelFactory
created by this format.Returns theILcdModelHeightProviderFactory
that can create anILcdHeightProvider
for this format.Returns theILcdModelMeasureProviderFactory
created by this format.final ILcyCustomizerPanelFactory[]
Returns theILcyCustomizerPanelFactory
factories created by this format that can createILcyCustomizerPanel
instances to customize the meta data for the models produced by the model decoders and model factories of this format.final ALcyWorkspaceObjectCodec[]
Returns theALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances that customize the meta data for the models created by this class.final ALcyWorkspaceObjectCodec[]
Returns the array ofALcyWorkspaceObjectCodec
codecs created by this format that can encode the state of theILcdModel
instances produced by this format.abstract String
Returns the short prefix of this format that can be used, for instance, to derive keys for aALcyProperties
instance.boolean
isGXYLayerOfFormat
(ILcdGXYLayer aGXYLayer) Returnstrue
if and only if the given layer is a layer of the current data format.abstract boolean
isModelOfFormat
(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
ILcyLucyEnv
backend with which thisALcyFormat
is associated.- Returns:
- The
ILcyLucyEnv
backend. 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
ALcyProperties
instance. 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
ILcdBalloonContentProvider
s created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The
ILcdBalloonContentProvider
s created by this format
-
getModelContentTypeProvider
Returns the
ILcyModelContentTypeProvider
created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The
ILcyModelContentTypeProvider
created by this format. - See Also:
-
getModelFactory
Returns the
ILcdModelFactory
created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The
ILcdModelFactory
created by this format. - See Also:
-
getDefaultModelDescriptorFactories
Returns the array of
ALcyDefaultModelDescriptorFactory
instances created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyDefaultModelDescriptorFactory
s created by this format. - See Also:
-
getModelDecoders
Returns the array of
ILcdModelDecoder
instances created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ILcdModelDecoder
s created by this format. - See Also:
-
getModelDecoderFileTypeDescriptors
Returns the array of
ALcyFileTypeDescriptor
instances created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyFileTypeDescriptor
instances. - See Also:
-
getModelDecoderFileTypeDescriptorGroups
Returns the ID's of the groups for the
ALcyFileTypeDescriptor
instances of theILcdModelDecoder
instances 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
ALcyFileTypeDescriptor
instances. - See Also:
-
getModelEncoders
Returns the array
ILcdModelEncoder
instances created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ILcdModelEncoder
instances.
-
getModelEncoderFileTypeDescriptors
Returns the array of
ALcyFileTypeDescriptor
instances created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyFileTypeDescriptor
instances corresponding to the createdILcdModelEncoder
instances. - See Also:
-
getModelEncoderCustomizerPanelFactories
Returns the array of
ILcyCustomizerPanelFactory
factories created by this format. Should only be called aftercreateAll()
has been called.The created
ILcyCustomizerPanel
s should work with instances ofTLcyModelEncoderContext
in theirsetObject
method.- Returns:
- The array of
ILcyCustomizerPanelFactory
factories. - See Also:
-
getModelEncoderCustomizerPanelWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances that customize the model encoders of this format. Should only be called aftercreateAll()
has been called.- Returns:
- An array containing the
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
getModelWorkspaceCodecs
Returns the array of
ALcyWorkspaceObjectCodec
codecs created by this format that can encode the state of theILcdModel
instances produced by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyWorkspaceObjectCodec
instances. - See Also:
-
getDomainObjectWorkspaceCodecs
Returns the array of
ALcyWorkspaceObjectCodec
codecs 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
ALcyWorkspaceObjectCodec
instances. - See Also:
-
getModelCustomizerPanelWorkspaceCodecs
Returns the array of
ALcyWorkspaceObjectCodec
codecs created by this format that can encodeILcdCustomizerPanel
instances produced by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyWorkspaceObjectCodec
instances. - See Also:
-
getModelCustomizerPanelFactories
Returns the
ILcyCustomizerPanelFactory
factories created by this format that can createILcyCustomizerPanel
instances for the models produced by the model decoders and model factories of this format. Should only be called aftercreateAll()
has been called.The created
ILcyCustomizerPanel
s should work with instances ofTLcyModelContext
in theirsetObject
method.- Returns:
- The array of
ILcyCustomizerPanelFactory
factories. - See Also:
-
getModelMetaDataCustomizerPanelFactories
Returns the
ILcyCustomizerPanelFactory
factories created by this format that can createILcyCustomizerPanel
instances 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
ILcyCustomizerPanel
s should work with instances ofTLcyModelMetaDataContext
in theirsetObject
method.- Returns:
- The array of
ILcyCustomizerPanelFactory
factories. - See Also:
-
getModelMetaDataCustomizerPanelWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances 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
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
getDomainObjectCustomizerPanelFactories
Returns the
ILcyCustomizerPanelFactory
factories created by this format that can createILcyCustomizerPanel
instances for the domain objects produced by the model decoders of this format. Should only be called aftercreateAll()
has been called.The created
ILcyCustomizerPanel
s should work with instances ofTLcyDomainObjectContext
in theirsetObject
method.- Returns:
- The array of
ILcyCustomizerPanelFactory
factories. - See Also:
-
getDomainObjectCustomizerPanelWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances 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
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
getGXYLayerTypeProvider
Returns the
ILcyGXYLayerTypeProvider
created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The
ILcyGXYLayerTypeProvider
. - See Also:
-
getGXYLayerFactory
Returns the
ILcdGXYLayerFactory
created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The
ILcdGXYLayerFactory
. - See Also:
-
getGXYLayerStyleProvider
Returns the
ILcdLayerStyleProvider
created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The
ILcyLayerStyleProvider
. - See Also:
-
getGXYLayerDecoders
Returns the
ILcdGXYLayerDecoder
decoders created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ILcdGXYLayerDecoder
decoders. - See Also:
-
getGXYLayerDecoderFileTypeDescriptors
Returns the
ALcyFileTypeDescriptor
descriptors describing the file types of theILcdGXYLayerDecoder
instances created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyFileTypeDescriptor
descriptors. - See Also:
-
getGXYLayerEncoders
Returns the
ILcdGXYLayerEncoder
encoders 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
ILcdGXYLayerEncoder
encoders. - See Also:
-
getGXYLayerEncoderFileTypeDescriptors
Returns the
ALcyFileTypeDescriptor
descriptors describing the files for theILcdGXYLayerEncoder
encoders created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyFileTypeDescriptor
descriptors. - See Also:
-
getAsynchronousPaintHintProvider
Returns the
ILcyAsynchronousPaintHintProvider
providing theTLcyAsynchronousPaintHint
for 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
ALcyWorkspaceObjectCodec
codecs 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
ALcyWorkspaceObjectCodec
codecs. - See Also:
-
getGXYLayerCustomizerPanelFactories
Returns the
ILcyCustomizerPanelFactory
s that can createILcyCustomizerPanel
instances for the layers created by the layer factories of this format. Should only be called aftercreateAll()
has been called.The created
ILcyCustomizerPanel
s should work with instances ofTLcyLayerContext
in theirsetObject
method.- Returns:
- The array of
ILcyCustomizerPanelFactory
s. - See Also:
-
getGXYLayerCustomizerPanelWorkspaceCodecs
Returns the
ALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances 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
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
getGXYLayerSelectionTransferHandlers
Returns the
ALcyLayerSelectionTransferHandler
transfer 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
ALcyLayerSelectionTransferHandler
transfer handlers. - See Also:
-
getFormatBarFactory
Returns the
ALcyFormatBarFactory
that 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
ILcdLayerHeightProviderFactory
that can create anILcdHeightProvider
for this format. Should only be called aftercreateAll()
has been called.- Returns:
- The
ILcdLayerHeightProviderFactory
- See Also:
-
getModelHeightProviderFactory
Returns the
ILcdModelHeightProviderFactory
that can create anILcdHeightProvider
for this format. Should only be called aftercreateAll()
has been called.- Returns:
- The
ILcdModelHeightProviderFactory
- See Also:
-
getLabelPlacementHintProvider
Returns theILcyLabelPlacementHintProvider
that can create aTLcyGXYLabelPlacementHint
for a layer of this format. Should only be called aftercreateAll()
has been called.- Returns:
- the
ILcyLabelPlacementHintProvider
. - See Also:
-
createModelMeasureProviderFactory
Creates the
ILcdModelMeasureProviderFactory
for this format.The default implementation returns
null
.- Returns:
- the
ILcdModelMeasureProviderFactory
for this format. Can benull
. - See Also:
-
getModelMeasureProviderFactory
Returns theILcdModelMeasureProviderFactory
created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- the
ILcdModelMeasureProviderFactory
created by this format. - See Also:
-
createLayerMeasureProviderFactory
Creates the
ILcdLayerMeasureProviderFactory
for this format.The default implementation returns
null
.- Returns:
- the
ILcdLayerMeasureProviderFactory
for this format. Can benull
. - See Also:
-
getLayerMeasureProviderFactory
Returns theILcdLayerMeasureProviderFactory
created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- the
ILcdLayerMeasureProviderFactory
created 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:
true
if and only if the given model is a model of the current data format.
-
createModelContentTypeProvider
Creates an
ILcyModelContentTypeProvider
for this format.- Returns:
- the
ILcyModelContentTypeProvider
for this data format. May benull
. - See Also:
-
createBalloonContentProviders
Creates the
ILcdBalloonContentProvider
s for this format.The default implementation returns an empty array.
- Returns:
- the
ILcdBalloonContentProvider
s for this format. Must not benull
. The array may be empty but not containnull
.
-
createModelFactory
Creates the
ILcdModelFactory
for this data format. All newly created models of the add-on are expected to be constructed through this factory.- Returns:
- The
ILcdModelFactory
for this data format. May benull
.
-
createDefaultModelDescriptorFactories
Creates the
ALcyDefaultModelDescriptorFactory
s 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
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.- Returns:
- The
ILcdModelDecoder
(or multiple) for this data format. Must not benull
, but the array may have length0
. - See Also:
-
createModelDecoderFileTypeDescriptors
Creates the
ALcyFileTypeDescriptor
instances corresponding to theILcdModelDecoder
instances created by this format.- Returns:
- The array of
ALcyFileTypeDescriptor
instances. 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
ALcyFileTypeDescriptor
instances of theILcdModelDecoder
s. The first dimension must be equal to the length of the array ofILcdModelDecoder
instances 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
TLcdStatusOutputStreamFactory
might be useful to implement this method.- Returns:
- An array of
ILcdModelEncoder
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
createModelEncoderFileTypeDescriptors
Creates the array of
ALcyFileTypeDescriptor
instances for theILcdModelEncoder
instances created by this format.- Returns:
- The array of
ALcyFileTypeDescriptor
instances. Must not benull
and its length must be equal to the length of the array ofILcdModelEncoder
instances created by this format. May containnull
. - See Also:
-
createModelEncoderCustomizerPanelFactories
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
createModelEncoderCustomizerPanelWorkspaceCodecs()
. This is needed if yourILcyCustomizerPanel
s need to store any specific state in the workspace.- Returns:
- An array of
ILcyCustomizerPanelFactory
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createModelEncoderCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
that customize the model encoder instances created by this class.- Returns:
- An array containing the
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
createModelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodec
codecs that can encode and decode theILcdModel
instances produces by the model decoders of this format.- Returns:
- An array containing the
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
createDomainObjectWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodec
that can encode and decode theILcyCustomizerPanel
instances for the domain objects produced by the model decoders of this format.- Returns:
- An array of
ALcyWorkspaceObjectCodec
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createModelCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodec
that can encode and decode theILcyCustomizerPanel
instances for the models produced by this format.- Returns:
- An array of
ALcyWorkspaceObjectCodec
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createModelCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactory
(s) that can createILcyCustomizerPanel
instances to customize the models produced by the model decoders and model factories of this format.The created
ILcyCustomizerPanel
s should work with instances ofTLcyModelContext
in theirsetObject
method.Hint: When overriding this method, you should also consider overriding
createModelCustomizerPanelWorkspaceCodecs()
. This is needed if yourILcyCustomizerPanel
s need to store any specific state in the workspace.- Returns:
- An array containing the
ILcyCustomizerPanelFactory
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createModelMetaDataCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactory
(s) that can createILcyCustomizerPanel
instances to customize the meta data of the models produced by the model decoders and model factories of this format.The created
ILcyCustomizerPanel
s should work with instances ofTLcyModelMetaDataContext
in theirsetObject
method.Hint: When overriding this method, you should also consider overriding
createModelMetaDataCustomizerPanelWorkspaceCodecs()
. This is needed if yourILcyCustomizerPanel
s need to store any specific state in the workspace.- Returns:
- An array containing the
ILcyCustomizerPanelFactory
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createModelMetaDataCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodec
codecs that can encode and decode theILcyCustomizerPanel
instances used to customize the meta data of the models produced by this format.- Returns:
- An array of
ALcyWorkspaceObjectCodec
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createDomainObjectCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactory
factories that can createILcyCustomizerPanel
instances for the domain objects created by the model decoders of this format.The created
ILcyCustomizerPanel
s should work with instances ofTLcyDomainObjectContext
in theirsetObject
method.Hint: When overriding this method, you should also consider overriding
createDomainObjectCustomizerPanelWorkspaceCodecs()
. This is needed if yourILcyCustomizerPanel
s need to store any specific state in the workspace.- Returns:
- An array containing the
ILcyCustomizerPanelFactory
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createDomainObjectCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances for the domain objects created by the model decoders of this format.- Returns:
- An array containing the
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
createGXYLayerTypeProvider
Creates an
ILcyGXYLayerTypeProvider
for this format.- Returns:
- A
ILcyGXYLayerTypeProvider
for this data format. May benull
. - See Also:
-
createGXYLayerFactory
Creates a
The factory can also configure label algorithms on the created layers.ILcdGXYLayerFactory
for this format.- Returns:
- the
ILcdGXYLayerFactory
for 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
ILcyAsynchronousPaintHintProvider
for this format.- Returns:
- A
ILcyAsynchronousPaintHintProvider
for the layers created by the layer factories of this format. May benull
. - See Also:
-
createGXYLayerDecoders
Creates the
ILcdGXYLayerDecoder
decoders 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
TLcdStatusInputStreamFactory
might 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
ALcyFileTypeDescriptor
s for theILcdGXYLayerDecoder
s. The length of the returned array must be equal to that ofcreateGXYLayerDecoders()
.An example usage of these
ALcyFileTypeDescriptor
instances 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-null
ALcyFileTypeDescriptor
.The default implementation returns a zero-length array.
- Returns:
- An array of
ALcyFileTypeDescriptor
instances. Must not benull
and its length must be equal to the length of the array of layer decoders created by this format. May containnull
.
-
createGXYLayerEncoders
Creates the
ILcdGXYLayerEncoder
encoders 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
TLcdStatusOutputStreamFactory
might be useful to implement this method.- Returns:
- An array of
ILcdGXYLayerEncoder
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createGXYLayerEncoderFileTypeDescriptors
Creates
ALcyFileTypeDescriptor
s for theILcdGXYLayerEncoder
s. The length of the returned array must be equal to that ofcreateGXYLayerEncoders()
.An example usage of these
ALcyFileTypeDescriptor
instances 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 theseALcyFileTypeDescriptor
s. When noALcyFileTypeDescriptor
s are available (or onlynull
ALcyFileTypeDescriptor
s) it will not be possible to save the layer style to file.The default implementation returns a zero-length array.
- Returns:
- An array of
ALcyFileTypeDescriptor
instances. Must not benull
and 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
ALcyWorkspaceObjectCodec
codecs 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
ALcyWorkspaceObjectCodec
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createGXYLayerCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactory
factories that can createILcyCustomizerPanel
instances for the layers created by the layer factories of this format.The created
ILcyCustomizerPanel
s should work with instances ofTLcyLayerContext
in theirsetObject
method.The default implementation returns a zero-length array.
Hint: When overriding this method, you should also consider overriding
createGXYLayerCustomizerPanelWorkspaceCodecs()
. This is needed if yourILcyCustomizerPanel
s need to store any specific state in the workspace.- Returns:
- An array of
ILcyCustomizerPanelFactory
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createGXYLayerCustomizerPanelWorkspaceCodecs
Creates the
ALcyWorkspaceObjectCodec
codecs for theILcyCustomizerPanel
instances for the layers created by the layer factories of this format.- Returns:
- An array containing the
ALcyWorkspaceObjectCodec
instances. Must not benull
, but may have length0
. Must not containnull
. - See Also:
-
createGXYLayerSelectionTransferHandlers
Creates the
ALcyLayerSelectionTransferHandler
transfer 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
ALcyLayerSelectionTransferHandler
instances. Must not benull
but may have length0
. Must not containnull
. - See Also:
-
createFormatBarFactory
Creates the
ALcyFormatBarFactory
that 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
ILcdLayerHeightProviderFactory
that can create anILcdHeightProvider
for this format.The default implementation returns
null
.- Returns:
- An
ILcdLayerHeightProviderFactory
. May benull
. - See Also:
-
createModelHeightProviderFactory
Creates the
ILcdModelHeightProviderFactory
that can create anILcdHeightProvider
for this format.The default implementation returns
null
.- Returns:
- An
ILcdModelHeightProviderFactory
. May benull
. - See Also:
-
createLabelPlacementHintProvider
Creates theILcyLabelPlacementHintProvider
that can create aTLcyGXYLabelPlacementHint
for layers of this format.The default implementation returns
null
.- Returns:
- An
ILcyLabelPlacementHintProvider
. May benull
. - See Also:
-
createModelOfFormatFilter
Utility method to create a
ILcdFilter
that only acceptsILcdModel
s that are accepted byisModelOfFormat(com.luciad.model.ILcdModel)
.- Returns:
- The
ILcdFilter
. Nevernull
.
-
createModelContextOfFormatFilter
Utility method to create a
ILcdFilter
that only acceptsTLcyModelContext
s whose model is accepted byisModelOfFormat(com.luciad.model.ILcdModel)
.- Returns:
- The
ILcdFilter
.
-
isGXYLayerOfFormat
Returns
true
if and only if the given layer is a layer of the current data format.- Parameters:
aGXYLayer
- The layer to check.- Returns:
true
if and only if the given layer is a layer of the current data format.
-
createGXYLayerOfFormatFilter
Utility method to create a
ILcdFilter
that only acceptsILcdGXYLayer
s that are accepted byisGXYLayerOfFormat(com.luciad.view.gxy.ILcdGXYLayer)
.- Returns:
- The
ILcdFilter
. Nevernull
.
-
createLayerContextOfFormatFilter
Utility method to create a
ILcdFilter
that only acceptsTLcyLayerContext
s 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 thanALcyFileTypeDescriptor
s.- Returns:
- An array containing the
ALcyDataSourceHandler
instances. Must not benull
but may have length0
. Must not containnull
.
-
createDataSourceHandlerFileTypeDescriptors
Creates the
ALcyFileTypeDescriptor
instances corresponding to theALcyFileTypeDescriptor
instances created by this format.- Returns:
- The array of
ALcyFileTypeDescriptor
instances. 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
ALcyFileTypeDescriptor
instances of theALcyFileTypeDescriptor
s. The first dimension must be equal to the length of the array ofALcyFileTypeDescriptor
instances created by this format. It must not containnull
, but may contain empty arrays.
-
createDataPropertyValueCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactory
factories that can createILcyCustomizerPanel
instances 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
ILcyCustomizerPanel
s should work with instances ofTLcdDataPropertyValueContext
in theirsetObject
method.The default implementation returns a zero-length array.
- Returns:
- An array of
ILcyCustomizerPanelFactory
instances. Must not benull
but may have length0
. Must not containnull
.
-
getDataSourceHandlers
Returns the array of
ALcyDataSourceHandler
instances created by this format. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyDataSourceHandler
s created by this format. - See Also:
-
getDataSourceHandlerFileTypeDescriptors
Returns the array of
ALcyFileTypeDescriptor
instances created by this format for data source handlers. Should only be called aftercreateAll()
has been called.- Returns:
- The array of
ALcyFileTypeDescriptor
instances for data source handlers. - See Also:
-
getDataSourceHandlerFileTypeDescriptorGroups
Returns the ID's of the groups for the
ALcyFileTypeDescriptor
instances of theALcyFileTypeDescriptor
instances 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
ALcyFileTypeDescriptor
instances. - See Also:
-
toString
-
getDataPropertyValueCustomizerPanelFactories
Creates the
ILcyCustomizerPanelFactory
factories that can createILcyCustomizerPanel
instances 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
ILcyCustomizerPanelFactory
s. - See Also:
-