public class TLcyDataFormatManager extends Object
ILcdModelDecoder
: getCompositeModelDecoder()
ILcdModelEncoder
: getCompositeModelEncoder()
ALcyDataSourceHandler
: getCompositeDataSourceHandler()
ILcdGXYLayerFactory
: getCompositeGXYLayerFactory()
ILcyGXYLayerTypeProvider
: getCompositeGXYLayerTypeProvider()
ILcyAsynchronousPaintHintProvider
: getCompositeAsynchronousPaintHintProvider()
ILcyModelContentTypeProvider
: getCompositeModelContentTypeProvider()
ILcdGXYLayerDecoder
: getCompositeGXYLayerDecoder()
ILcdGXYLayerEncoder
: getCompositeGXYLayerEncoder()
ILcdModelReferenceDecoder
: getCompositeModelReferenceDecoder()
TLcyDataFormatManager
is that it allows
to programmatically handle data sources, for example opening data files. This can be done
using handleDataSources(ILcdDataSource[], ILcyGenericMapComponent, Component)
.
Consult the "Loading data in Lucy" chapter in the Lucy developer guide for more information about how this class can be used for data loading, and for some examples.
Modifier and Type | Class and Description |
---|---|
static class |
TLcyDataFormatManager.ALcyHandlerChooser
Class that represents the logic to choose a
ILcdModelDecoder or
ALcyDataSourceHandler out of a list of candidates. |
static class |
TLcyDataFormatManager.ALcyMapComponentChooser
Class that represents the logic to choose one or multiple
ILcyGenericMapComponent (s)
out of a list of candidates. |
Constructor and Description |
---|
TLcyDataFormatManager(ILcyLucyEnv aLucyEnv)
Create a new data format manager
|
Modifier and Type | Method and Description |
---|---|
void |
addDataSourceListener(ILcyDataSourceListener aDataSourceListener)
Adds the given
ILcyDataSourceListener . |
TLcyCompositeAsynchronousPaintHintProvider |
getCompositeAsynchronousPaintHintProvider()
Deprecated.
Use
new TLcyCompositeAsynchronousPaintHintProvider(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeDataSourceHandler |
getCompositeDataSourceHandler()
Deprecated.
Use
new TLcyCompositeDataSourceHandler(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeFileTypeDescriptor |
getCompositeFileTypeDescriptorGroup()
Returns the
TLcyCompositeFileTypeDescriptor that represents the list of associated
ALcyFileTypeDescriptor s. |
TLcyCompositeGXYLayerDecoder |
getCompositeGXYLayerDecoder()
Deprecated.
Use
new TLcyCompositeGXYLayerDecoder(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeGXYLayerEncoder |
getCompositeGXYLayerEncoder()
Deprecated.
Use
new TLcyCompositeGXYLayerEncoder(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeGXYLayerFactory |
getCompositeGXYLayerFactory()
Deprecated.
Use
new TLcyCompositeGXYLayerFactory(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeGXYLayerTypeProvider |
getCompositeGXYLayerTypeProvider()
Deprecated.
Use
new TLcyCompositeGXYLayerTypeProvider(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeModelContentTypeProvider |
getCompositeModelContentTypeProvider()
Deprecated.
Use
new TLcyCompositeModelContentTypeProvider(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeModelDecoder |
getCompositeModelDecoder()
Deprecated.
Use
new TLcyCompositeModelDecoder(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeModelEncoder |
getCompositeModelEncoder()
Deprecated.
Use
new TLcyCompositeModelEncoder(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyCompositeModelReferenceDecoder |
getCompositeModelReferenceDecoder()
Deprecated.
Use
new TLcyCompositeModelReferenceDecoder(aLucyEnv) instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int) and the Lucy developer guide for more information. |
TLcyDataFormatManager.ALcyHandlerChooser |
getHandlerChooser()
Returns the
ALcyHandlerChooser that is currently used. |
ILcdLogListener |
getLogListener()
Returns the one and only
ILcdLogListener to which end-user messages will be passed
when handling data. |
TLcyDataFormatManager.ALcyMapComponentChooser |
getMapComponentChooser()
Returns the
ALcyMapComponentChooser that is currently used. |
void |
handleDataSources(ILcdDataSource[] aDataSources,
ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent,
Component aParentComponent)
Opens the data represented by
aDataSources on aMapComponent by using all the
ILcdModelDecoder s that are registered on the Lucy back-end. |
void |
handleDataSources(ILcdDataSource[] aDataSources,
ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent,
ILcdModelDecoder[] aModelDecoders,
Component aParentComponent)
Opens the data represented by
aDataSources on aMapComponent by using all the
ILcdModelDecoder s in aModelDecoders . |
void |
handleDataSources(String[] aDataSources,
ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent,
ALcyFileTypeDescriptor aSelectedFileTypeDescriptor,
Component aParentComponent)
Opens the data represented by
aDataSources on aMapComponent by using all the
ILcdModelDecoder s and ALcyDataSourceHandler s that are registered on the Lucy
back-end. |
void |
handleDataSources(String[] aDataSources,
ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent,
ILcdModelDecoder[] aModelDecoders,
ALcyFileTypeDescriptor[] aModelDecoderFileTypeDescriptors,
ALcyDataSourceHandler[] aDataSourceHandlers,
ALcyFileTypeDescriptor[] aDataSourceHandlerFileTypeDescriptors,
ALcyFileTypeDescriptor aSelectedFileTypeDescriptor,
Component aParentComponent)
Opens the data represented by
aDataSources on aMapComponent by using the
ILcdModelDecoder s in aModelDecoders and the ALcyDataSourceHandler s in
aDataSourceHandlers . |
void |
removeDataSourceListener(ILcyDataSourceListener aDataSourceListener)
Removes the given
ILcyDataSourceListener . |
void |
setHandlerChooser(TLcyDataFormatManager.ALcyHandlerChooser aHandlerChooser)
The
ALcyHandlerChooser is responsible for deciding which ILcdModelDecoder
or ALcyDataSourceHandler is used when a data source (a String or ILcdDataSource )
is passed to this TLcyDataFormatManager . |
void |
setLogListener(ILcdLogListener aLogListener)
Sets the one and only
ILcdLogListener to which end-user messages will be passed
when handling data. |
void |
setMapComponentChooser(TLcyDataFormatManager.ALcyMapComponentChooser aMapComponentChooser)
The
ALcyMapComponentChooser is responsible for deciding on which ILcyGenericMapComponent (s) a data source (a String or ILcdDataSource ) should
be opened when handling data sources. |
public TLcyDataFormatManager(ILcyLucyEnv aLucyEnv)
Create a new data format manager
Note: normally this constructor should never be used. Use the TLcyDataFormatManager
available on the Lucy back-end instead by calling ILcyLucyEnv#getDataFormatManager()
.
aLucyEnv
- the Lucy backendpublic void handleDataSources(String[] aDataSources, ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent, ALcyFileTypeDescriptor aSelectedFileTypeDescriptor, Component aParentComponent)
Opens the data represented by aDataSources
on aMapComponent
by using all the
ILcdModelDecoder
s and ALcyDataSourceHandler
s that are registered on the Lucy
back-end.
When data can not be opened on aMapComponent
, the map component chooser will be asked for other map(s) on which the
TLcyDataFormatManager
re-tries opening the data.
aDataSources
- The data sources to open.aMapComponent
- The map component to which the data will be added if
possible.aSelectedFileTypeDescriptor
- The selected file type descriptor, can be used if there is
ambiguity (multiple decoders can read a file). Use
null
for default behavior.aParentComponent
- A parent component, used to display message dialogs.handleDataSources(String[], ILcyGenericMapComponent,
ILcdModelDecoder[], ALcyFileTypeDescriptor[],
ALcyDataSourceHandler[], ALcyFileTypeDescriptor[],
ALcyFileTypeDescriptor, Component)
public void handleDataSources(ILcdDataSource[] aDataSources, ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent, Component aParentComponent)
Opens the data represented by aDataSources
on aMapComponent
by using all the
ILcdModelDecoder
s that are registered on the Lucy back-end.
When data can not be opened on aMapComponent
, the map component chooser will be asked for other map(s) on which the
TLcyDataFormatManager
re-tries opening the data.
aDataSources
- The data sources to open.aMapComponent
- The map component to which the data will be added if possible.aParentComponent
- A parent component, used to display message dialogs.handleDataSources(ILcdDataSource[], ILcyGenericMapComponent,
ILcdModelDecoder[], Component)
public void handleDataSources(String[] aDataSources, ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent, ILcdModelDecoder[] aModelDecoders, ALcyFileTypeDescriptor[] aModelDecoderFileTypeDescriptors, ALcyDataSourceHandler[] aDataSourceHandlers, ALcyFileTypeDescriptor[] aDataSourceHandlerFileTypeDescriptors, ALcyFileTypeDescriptor aSelectedFileTypeDescriptor, Component aParentComponent)
Opens the data represented by aDataSources
on aMapComponent
by using the
ILcdModelDecoder
s in aModelDecoders
and the ALcyDataSourceHandler
s in
aDataSourceHandlers
.
Before handling starts, and after handling has finished, all ILcyDataSourceListener
s
are informed. Such a listener can be added using addDataSourceListener
.
Choosing which ILcdModelDecoder
or ALcyDataSourceHandler
to use
for a particular data source and a particular map component is left to a ALcyHandlerChooser
. That handler can
be replaced using setHandlerChooser
.
If errors occur while handling the data sources, messages will be send to getLogListener()
. It is up to that listener to inform the end user of these messages.
When the data cannot be opened on aMapComponent
it will be re-tried on other
available maps. The maps on which opening the data is re-tried are determined by the ALcyMapComponentChooser
. This chooser can be replaced using setMapComponentChooser
.
Note that the data sources are handled on the calling thread. As this is probably a task that may take some time, it is advised to call this method from a worker thread.
aDataSources
- The data sources to open.aMapComponent
- The map component to which the data will be added if
possible.aModelDecoders
- A list of ILcdModelDecoder
s to use when
handling the data sources.aModelDecoderFileTypeDescriptors
- The file type descriptors corresponding to aModelDecoders.
Is null
iff aModelDecoders is
null
. Array must have equal length as
aModelDecoders. It can contain null values for those
ILcdModelDecoder
s that don't work with files.aDataSourceHandlers
- A list of ALcyDataSourceHandler
s to use when
handling the data sources.aDataSourceHandlerFileTypeDescriptors
- The file type descriptors corresponding to
aDataSourceHandlers. Is null
iff
aDataSourceHandlers is null
. Array must have
equal length as aDataSourceHandlers. It can contain null
values for those ALcyDataSourceHandler
s that
don't work with files.aSelectedFileTypeDescriptor
- The selected file type descriptor, can be used if there is
ambiguity (multiple decoders can read a file). Use
null
for default behavior.aParentComponent
- A parent component, used to display message dialogs.public void handleDataSources(ILcdDataSource[] aDataSources, ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent, ILcdModelDecoder[] aModelDecoders, Component aParentComponent)
Opens the data represented by aDataSources
on aMapComponent
by using all the
ILcdModelDecoder
s in aModelDecoders
.
Before handling starts, and after handling has finished, all ILcyDataSourceListener
s
are informed. Such a listener can be added using addDataSourceListener(ILcyDataSourceListener)
.
Choosing which ILcdModelDecoder
to use for a particular data source
and a particular map component is left to a ALcyHandlerChooser
. That chooser can be replaced using setHandlerChooser
.
If errors occur while handling the data sources, messages will be send to getLogListener()
. It is up to that listener to inform the end user of these messages.
When the data cannot be opened on aMapComponent
it will be re-tried on other
available maps. The maps on which opening the data is re-tried are determined by the ALcyMapComponentChooser
. This chooser can be replaced using setMapComponentChooser
.
Note that the data sources are handled on the calling thread. As this is probably a task that may take some time, it is advised to call this method from a worker thread.
aDataSources
- The data sources to open.aMapComponent
- The map component to which the data will be added if possible.aModelDecoders
- A list of ILcdModelDecoder
s to use when handling
the data sources.aParentComponent
- A parent component, used to display message dialogs.public void addDataSourceListener(ILcyDataSourceListener aDataSourceListener)
ILcyDataSourceListener
. The listener will be notified when datasources
are handled using handleDataSources(ILcdDataSource[], ILcyGenericMapComponent, Component)
.aDataSourceListener
- The listener to add.removeDataSourceListener(ILcyDataSourceListener)
public void removeDataSourceListener(ILcyDataSourceListener aDataSourceListener)
ILcyDataSourceListener
.aDataSourceListener
- The listener to remove.addDataSourceListener(ILcyDataSourceListener)
public ILcdLogListener getLogListener()
Returns the one and only ILcdLogListener
to which end-user messages will be passed
when handling data.
setLogListener(ILcdLogListener)
public void setLogListener(ILcdLogListener aLogListener)
Sets the one and only ILcdLogListener
to which end-user messages will be passed
when handling data.
The listener could for example pop up a message dialog if a message is received, or it could
collect all messages and display one dialog when handling the data sources has finished (addDataSourceListener
can be
useful in that context).
aLogListener
- The log listener. Should not be null
getLogListener()
@Deprecated public TLcyCompositeModelDecoder getCompositeModelDecoder()
new TLcyCompositeModelDecoder(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeModelDecoder
that represents the list of associated
ILcdModelDecoder
s. It can also be directly used as a
ILcdModelDecoder
itself.
Adding ILcdModelDecoder
s to this list allows an add-on to provide Lucy
with its own ILcdModelDecoder
s, offering a wider set of supported data
formats.
When a ILcdModelDecoder
is registered, a matching ILcdGXYLayerFactory
,
ILcyModelContentTypeProvider
and ILcyGXYLayerTypeProvider
might
need to be registered as well. Please refer to getCompositeGXYLayerFactory()
,
getCompositeGXYLayerTypeProvider()
and getCompositeModelContentTypeProvider()
for more details.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeModelDecoder
.@Deprecated public TLcyCompositeModelEncoder getCompositeModelEncoder()
new TLcyCompositeModelEncoder(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeModelEncoder
that represents the list of associated
ILcdModelEncoder
s. It can also be directly used as a
ILcdModelEncoder
itself.
Adding ILcdModelEncoder
s to this list allows an add-on to provide Lucy
with its own ILcdModelEncoder
s, allowing to export to more data
formats.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeModelEncoder
.@Deprecated public TLcyCompositeDataSourceHandler getCompositeDataSourceHandler()
new TLcyCompositeDataSourceHandler(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeDataSourceHandler
that represents the list of associated
ALcyDataSourceHandler
s. It can also be directly used as a
ALcyDataSourceHandler
itself.
Adding ALcyDataSourceHandler
s to this list allows an add-on to provide Lucy
with its own ALcyDataSourceHandler
s, offering a wider set of supported data
formats.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeDataSourceHandler
.@Deprecated public TLcyCompositeGXYLayerFactory getCompositeGXYLayerFactory()
new TLcyCompositeGXYLayerFactory(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeGXYLayerFactory
that represents the list of associated
ILcdGXYLayerFactory
s. It can also be directly used as a
ILcdGXYLayerFactory
itself.
ILcdGXYLayerFactory
s that are added to this composite should only create
ILcdGXYLayer
s for
ILcdModel
's they know about. It should not simply create a
ILcdGXYLayer
for every ILcdModel
it gets passed in its
createGXYLayer
, but instead verify if the given ILcdModel
is
supported, e.g. by testing the ILcdModelDescriptor
of the ILcdModel
.
If the ILcdModel
passed in the createGXYLayer
method is not
supported, it should return null
.
When a ILcdGXYLayerFactory
is registered, a matching ILcyGXYLayerTypeProvider
might
need to be registered as well. Please refer to getCompositeGXYLayerTypeProvider()
for more details.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeGXYLayerFactory
.@Deprecated public TLcyCompositeGXYLayerTypeProvider getCompositeGXYLayerTypeProvider()
new TLcyCompositeGXYLayerTypeProvider(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeGXYLayerTypeProvider
that represents the list of associated
ILcyGXYLayerTypeProvider
s. It can also be directly used as a
ILcyGXYLayerTypeProvider
itself.
Adding ILcyGXYLayerTypeProvider
s to this list allows an add-on to provide Lucy
with its own layer type providers.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeGXYLayerTypeProvider
.@Deprecated public TLcyCompositeModelContentTypeProvider getCompositeModelContentTypeProvider()
new TLcyCompositeModelContentTypeProvider(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeModelContentTypeProvider
that represents the list of
associated ILcyModelContentTypeProvider
s. It can also be directly used as a
ILcyModelContentTypeProvider
itself.
Adding ILcyModelContentTypeProvider
s to this list allows an add-on to provide
Lucy with its own ILcyModelContentTypeProvider
s.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeModelContentTypeProvider
.ILcyLucyEnv.addService(Object, int)
@Deprecated public TLcyCompositeAsynchronousPaintHintProvider getCompositeAsynchronousPaintHintProvider()
new TLcyCompositeAsynchronousPaintHintProvider(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeAsynchronousPaintHintProvider
that represents the list of associated
ILcyAsynchronousPaintHintProvider
s. It can also be directly used as a
ILcyAsynchronousPaintHintProvider
itself.
Adding ILcyAsynchronousPaintHintProvider
s to this list allows an add-on to provide Lucy
with its own ILcyAsynchronousPaintHintProvider
s.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeAsynchronousPaintHintProvider
.@Deprecated public TLcyCompositeGXYLayerDecoder getCompositeGXYLayerDecoder()
new TLcyCompositeGXYLayerDecoder(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeGXYLayerDecoder
that represents the list of associated
ILcdGXYLayerDecoder
s. It can also be directly used as a
ILcdGXYLayerDecoder
itself.
Adding ILcdGXYLayerDecoder
s to this list allows an add-on to provide Lucy
with its own ILcdGXYLayerDecoder
s.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeGXYLayerDecoder
.@Deprecated public TLcyCompositeGXYLayerEncoder getCompositeGXYLayerEncoder()
new TLcyCompositeGXYLayerEncoder(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeGXYLayerEncoder
that represents the list of associated
ILcdGXYLayerEncoder
s. It can also be directly used as a
ILcdGXYLayerEncoder
itself.
Adding ILcdGXYLayerEncoder
s to this list allows an add-on to provide Lucy
with its own ILcdGXYLayerEncoder
s.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeGXYLayerEncoder
.@Deprecated public TLcyCompositeModelReferenceDecoder getCompositeModelReferenceDecoder()
new TLcyCompositeModelReferenceDecoder(aLucyEnv)
instead.
The Lucy API offers composite implementations of all interfaces which can be registered on the services.
Those composite implementations will use those registered instances when the constructor with the Lucy back-end
as parameter is used.
See the javadoc of ILcyLucyEnv.addService(Object, int)
and the Lucy developer guide for more information.Returns the TLcyCompositeModelReferenceDecoder
that represents the list of associated
ILcdModelReferenceDecoder
s. It can also be directly used as a
ILcdModelReferenceDecoder
itself.
Adding ILcdModelReferenceDecoder
s to this list allows an add-on to provide Lucy
with its own ILcdModelReferenceDecoder
s.
Note: the returned composite instance works on the Lucy services
.
TLcyCompositeModelReferenceDecoder
.public TLcyCompositeFileTypeDescriptor getCompositeFileTypeDescriptorGroup()
TLcyCompositeFileTypeDescriptor
that represents the list of associated
ALcyFileTypeDescriptor
s. It can also be directly used as a
ALcyFileTypeDescriptor
itself.
Adding ALcyFileTypeDescriptor
s to this list allows an add-on to provide Lucy
with its own ALcyFileTypeDescriptor
groups. Such a group could be (though
not mandatory) a TLcyCompositeFileTypeDescriptor
itself. It could for example
represent "All known vector files", composed of several other ALcyFileTypeDescriptor
s.TLcyCompositeModelReferenceDecoder
.public TLcyDataFormatManager.ALcyHandlerChooser getHandlerChooser()
ALcyHandlerChooser
that is currently used.ALcyHandlerChooser
that is currently used.setHandlerChooser(TLcyDataFormatManager.ALcyHandlerChooser)
public void setHandlerChooser(TLcyDataFormatManager.ALcyHandlerChooser aHandlerChooser)
The ALcyHandlerChooser
is responsible for deciding which ILcdModelDecoder
or ALcyDataSourceHandler
is used when a data source (a String
or ILcdDataSource
)
is passed to this TLcyDataFormatManager
.
aHandlerChooser
- The handler chooser.public void setMapComponentChooser(TLcyDataFormatManager.ALcyMapComponentChooser aMapComponentChooser)
The ALcyMapComponentChooser
is responsible for deciding on which ILcyGenericMapComponent
(s) a data source (a String
or ILcdDataSource
) should
be opened when handling data sources.
aMapComponentChooser
- The map component chooser.public TLcyDataFormatManager.ALcyMapComponentChooser getMapComponentChooser()
ALcyMapComponentChooser
that is currently used.ALcyMapComponentChooser
that is currently used.setMapComponentChooser(TLcyDataFormatManager.ALcyMapComponentChooser)