public class TLcyMapOverviewAddOn extends ALcyAddOn
getOverviewMapManager()
This addon will try to load the data specified in the config file on newly
created the overviews. It therefore needs the necessary model decoders and layer
factories, registered by the various data decoder addons. This addon assumes
that those are already added to the lucy environment. For instance, if you
want to load shp files on your overview, you might want to plug the
ALcyDefaultDecodersAddOn before this one.
Note that when the state of this addon is restored by loading some workspace,
the above mentioned data will only be loaded to newly created overviews,
the overviews defined in the workspace are restored as they were saved.Modifier and Type | Field and Description |
---|---|
static TLcyGroupDescriptor |
MAP_GROUP_DESCRIPTOR |
static String |
MODEL_TYPE |
Constructor and Description |
---|
TLcyMapOverviewAddOn() |
Modifier and Type | Method and Description |
---|---|
ALcyMapComponentFactory |
getMapComponentFactory()
Get the factory used to create the overview map component.
|
ILcyMapManager |
getOverviewMapManager()
Returns the map manager containing the map overviews.
|
void |
plugInto(ILcyLucyEnv aLucyEnv)
Plugs this addon into the given lucy environment.
|
void |
setMapComponentFactory(ALcyMapComponentFactory aMapComponentFactory)
Set the factory used to create the overview map component.
|
void |
unplugFrom(ILcyLucyEnv aLucyEnv)
Unplugs this addon from the given Lucy environment.
|
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
public static final TLcyGroupDescriptor MAP_GROUP_DESCRIPTOR
public static final String MODEL_TYPE
public ALcyMapComponentFactory getMapComponentFactory()
public void setMapComponentFactory(ALcyMapComponentFactory aMapComponentFactory)
Set the factory used to create the overview map component.
This setter has to be called before plugInto() is invoked to have any effect. If no factory is set, or it is set to null, the default factory will be used.
To make your own overview map component, extend TLcyMapComponentFactory or TLcyMapOverviewComponentFactory (will already create an overview and the necessary controllers).
aMapComponentFactory
- The factory.TLcyMapComponentFactory
,
TLcyMapOverviewComponentFactory
public void plugInto(ILcyLucyEnv aLucyEnv)
ALcyAddOn
plugInto
in class ALcyAddOn
aLucyEnv
- The lucy environment to plug into.ALcyAddOn.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
public void unplugFrom(ILcyLucyEnv aLucyEnv)
ALcyAddOn
unplugFrom
in class ALcyAddOn
aLucyEnv
- The lucy environment to unplug from.ALcyAddOn.plugInto(com.luciad.lucy.ILcyLucyEnv)
public ILcyMapManager getOverviewMapManager()
ILcyLucyEnv.getMapManager()
returns the manager
containing all standard maps, this map manager only contains the map
overviews. This allows programmatic access to the map overviews, to
for example add some custom data.