Package com.luciad.lucy.addons.vertical
Class TLcyVerticalViewAddOn
java.lang.Object
com.luciad.lucy.addons.ALcyAddOn
com.luciad.lucy.addons.vertical.TLcyVerticalViewAddOn
The vertical view addon allows to display vertical profiles. It adds a menu
item to open a vertical view panel. From this panel, all vertical view
functionality can be accessed.
Vertical views can be programmatically added using
createAndAddVerticalViewComponent()
.
Workspace considerations
To store its internal state, the vertical view add-on needs to encode which object was visible in the vertical view. As such, it needs to be able to reference domain objects that are contained in models.
When encoding a reference to a domain object, this add-on passes the model containing the domain object as the parent.
If you are writing your own add-on, and that add-on adds custom models to Lucy,
you will need to add an ALcyWorkspaceObjectCodec
that can encode the state of these domain objects.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates and adds a new vertical view component.Returns the factory that is used to create vertical view components.Returns theTLcyVerticalViewManager
that keeps track of the currently active vertical views.void
plugInto
(ILcyLucyEnv aLucyEnv) Plugs this addon into the given lucy environment.void
setVerticalViewComponentFactory
(ALcyVerticalViewComponentFactory aVerticalViewComponentFactory) Sets the factory that is used to create vertical view components.void
unplugFrom
(ILcyLucyEnv aLucyEnv) Unplugs this addon from the given Lucy environment.Methods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Field Details
-
VERTICAL_VIEW_GROUP_DESCRIPTOR
-
-
Constructor Details
-
TLcyVerticalViewAddOn
public TLcyVerticalViewAddOn()
-
-
Method Details
-
plugInto
Description copied from class:ALcyAddOn
Plugs this addon into the given lucy environment. It is in the implementation of this method that the addon adds its functionality to the Lucy backend. -
unplugFrom
Description copied from class:ALcyAddOn
Unplugs this addon from the given Lucy environment. It removes the functionality previously added to the Lucy backend.- Specified by:
unplugFrom
in classALcyAddOn
- Parameters:
aLucyEnv
- The lucy environment to unplug from.- See Also:
-
createAndAddVerticalViewComponent
Creates and adds a new vertical view component. The component is created using the vertical viewfactory
and added to anILcyApplicationPane
. So after calling this method, the new vertical view is present in the user interface. TheILcyApplicationPane
for the returned vertical view can be retrieved usingILcyLucyEnv.getUserInterfaceManager().getApplicationPaneManager()
. To dispose a vertical view, retrieve itsILcyApplicationPane
and callILcyApplicationPane.disposeApp()
.- Returns:
- The component created by the
factory
.
-
getVerticalViewComponentFactory
Returns the factory that is used to create vertical view components.- Returns:
- the factory that is used to create vertical view components.
- See Also:
-
setVerticalViewComponentFactory
public void setVerticalViewComponentFactory(ALcyVerticalViewComponentFactory aVerticalViewComponentFactory) Sets the factory that is used to create vertical view components. Changing the factory allows to modify the user interface of the vertical views. Note that it is also possible to configure which factory to use, in the vertical view configuration file.- Parameters:
aVerticalViewComponentFactory
- The factory that is used to create vertical view components. Must not benull
.
-
getVerticalViewManager
Returns theTLcyVerticalViewManager
that keeps track of the currently active vertical views.- Returns:
- the
TLcyVerticalViewManager
.
-