Package com.luciad.lucy
Class TLcyLucyEnvFactory
java.lang.Object
com.luciad.lucy.TLcyLucyEnvFactory
Factory class to create a
ILcyLucyEnv
implementation.
You will have to pass a ILcyApplicationPaneFactory
implementation that will be responsible to create the application panes, the
panels in which all addons make themselves visible.
You will also have to pass in a menu bar, either a ILcyMenuBar
implementation or a common JMenuBar
.
Note that TLcyTabbedPaneLucyEnvFactory can also be used.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ALcyFileTypeDescriptor
createAllKnownFileTypeDescriptor
(ILcyLucyEnv aLucyEnv) Creates theALcyFileTypeDescriptor
that represents all known files.protected TLcyDataFormatManager.ALcyHandlerChooser
createHandlerChooser
(ILcyLucyEnv aLucyEnv) Creates theTLcyDataFormatManager.ALcyHandlerChooser
that is responsible to choose the correct handler for a particular data source.static ILcyLucyEnv
createLucyEnv
(ILcyApplicationPaneFactory aApplicationPaneFactory, ILcyMenuBar aMainMenuBar) Equivalent tocreateLucyEnv( aApplicationPaneFactory, aMainMenuBar, true )
.createLucyEnv
(ILcyApplicationPaneFactory aApplicationPaneFactory, ILcyMenuBar aMainMenuBar, boolean aMergeMenuBars) Creates a new lucy environment where the givenILcyApplicationPaneFactory
and the givenILcyMenuBar
are used.static ILcyLucyEnv
createLucyEnv
(ILcyApplicationPaneFactory aApplicationPaneFactory, JMenuBar aMainMenuBar) Equivalent tocreateLucyEnv( aApplicationPaneFactory, aMainMenuBar, true )
.createLucyEnv
(ILcyApplicationPaneFactory aApplicationPaneFactory, JMenuBar aMainMenuBar, boolean aMergeMenuBars) Equivalent tocreateLucyEnv( aApplicationPaneFactory, new TLcyMenuBar( aMainMenuBar ), true )
.createMapComponentChooser
(ILcyLucyEnv aLucyEnv) Creates theTLcyDataFormatManager.ALcyMapComponentChooser
that is responsible to choose the correct map component for opening a particular data source.
-
Constructor Details
-
TLcyLucyEnvFactory
public TLcyLucyEnvFactory()
-
-
Method Details
-
createLucyEnv
public static ILcyLucyEnv createLucyEnv(ILcyApplicationPaneFactory aApplicationPaneFactory, JMenuBar aMainMenuBar) Equivalent tocreateLucyEnv( aApplicationPaneFactory, aMainMenuBar, true )
.- Returns:
- Equivalent to
createLucyEnv( aApplicationPaneFactory, aMainMenuBar, true )
. - See Also:
-
createLucyEnv
public ILcyLucyEnv createLucyEnv(ILcyApplicationPaneFactory aApplicationPaneFactory, JMenuBar aMainMenuBar, boolean aMergeMenuBars) Equivalent tocreateLucyEnv( aApplicationPaneFactory, new TLcyMenuBar( aMainMenuBar ), true )
.Also makes sure the correct help manager is set to the created TLcyMenuBar.
- Returns:
- Equivalent to
createLucyEnv( aApplicationPaneFactory, new TLcyMenuBar( aMainMenuBar ), true )
. - See Also:
-
createLucyEnv
public static ILcyLucyEnv createLucyEnv(ILcyApplicationPaneFactory aApplicationPaneFactory, ILcyMenuBar aMainMenuBar) Equivalent tocreateLucyEnv( aApplicationPaneFactory, aMainMenuBar, true )
.- Returns:
- Equivalent to
createLucyEnv( aApplicationPaneFactory, aMainMenuBar, true )
. - See Also:
-
createLucyEnv
public ILcyLucyEnv createLucyEnv(ILcyApplicationPaneFactory aApplicationPaneFactory, ILcyMenuBar aMainMenuBar, boolean aMergeMenuBars) Creates a new lucy environment where the givenILcyApplicationPaneFactory
and the givenILcyMenuBar
are used.- Parameters:
aApplicationPaneFactory
- The application pane factory to be used by the lucy env.aMainMenuBar
- The main menu bar of the lucy environment.aMergeMenuBars
- If true, the menu items of the menu bar of the active map component (ILcyMapComponent.getMenuBar()
) are automatically added to the main menu bar. When the active map component changes (ILcyMapManager.setActiveMapComponent()
), the menu items corresponding to the previous active map component will be removed and the menu items corresponding to the new active map component will be added. Default is true.- Returns:
- A newly created lucy environment.
-
createAllKnownFileTypeDescriptor
Creates theALcyFileTypeDescriptor
that represents all known files. This is typically used in a file chooser, to only show the files that can probably be read. This method does not add theALcyFileTypeDescriptor
to the givenILcyLucyEnv
. TheILcyLucyEnv
is only passed as contextual information.- Parameters:
aLucyEnv
- TheILcyLucyEnv
. Can be used as contextual information.- Returns:
- Null, or the
ALcyFileTypeDescriptor
that represents all known files.
-
createHandlerChooser
Creates theTLcyDataFormatManager.ALcyHandlerChooser
that is responsible to choose the correct handler for a particular data source. It is used inTLcyDataFormatManager
.- Parameters:
aLucyEnv
- TheILcyLucyEnv
. Can be used as contextual information.- Returns:
- The
TLcyDataFormatManager.ALcyHandlerChooser
.
-
createMapComponentChooser
protected TLcyDataFormatManager.ALcyMapComponentChooser createMapComponentChooser(ILcyLucyEnv aLucyEnv) Creates theTLcyDataFormatManager.ALcyMapComponentChooser
that is responsible to choose the correct map component for opening a particular data source. It is used inTLcyDataFormatManager
.- Parameters:
aLucyEnv
- TheILcyLucyEnv
. Can be used as contextual information.- Returns:
- The
TLcyDataFormatManager.ALcyMapComponentChooser
.
-