Package com.luciad.lucy.addons.vertical
Class TLcyVerticalViewManager
java.lang.Object
com.luciad.lucy.addons.vertical.TLcyVerticalViewManager
This class keeps track of the existing vertical views. Vertical views can be added, removed and retrieved.
Events are fired to the registered
ILcyVerticalViewManagerListener
s when vertical views
are added or removed.
Note that adding or removing vertical views is normally done by the TLcyVerticalViewAddOn
itself,
there is no need to add or remove vertical views manually. To create a new vertical view,
see TLcyVerticalViewAddOn.createAndAddVerticalViewComponent()
.
To fully dispose a vertical view, retrieve the ILcyApplicationPane
for its Component
using
ILcyLucyEnv.getUserInterfaceManager().getApplicationPaneManager()
, and call disposeApp()
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addVerticalViewComponent
(Component aVerticalViewComponent) Adds the givenComponent
to thisTLcyVerticalViewManager
.void
Adds the givenILcyVerticalViewManagerListener
to this manager which will be notified when it changes.getVerticalViewComponent
(int aIndex) Returns the vertical view at the given index.int
Returns the number of vertical view components registered with this manager.void
removeVerticalViewComponent
(Component aVerticalViewComponent) Removes the givenComponent
from thisTLcyVerticalViewManager
.void
Removes the givenILcyVerticalViewManagerListener
from this manager.
-
Constructor Details
-
TLcyVerticalViewManager
public TLcyVerticalViewManager()
-
-
Method Details
-
getVerticalViewComponentCount
public int getVerticalViewComponentCount()Returns the number of vertical view components registered with this manager.- Returns:
- The number of vertical view components registered with this manager.
-
getVerticalViewComponent
Returns the vertical view at the given index.- Parameters:
aIndex
- Specifies which vertical view is to be returned.- Returns:
- A vertical view at the given index.
-
addVerticalViewComponent
Adds the givenComponent
to thisTLcyVerticalViewManager
. This method shouldn't normally be used, see class comment.- Parameters:
aVerticalViewComponent
- The vertical view component to add.
-
removeVerticalViewComponent
Removes the givenComponent
from thisTLcyVerticalViewManager
. This method shouldn't normally be used, see class comment.- Parameters:
aVerticalViewComponent
- The vertical view component to remove.
-
addVerticalViewManagerListener
Adds the givenILcyVerticalViewManagerListener
to this manager which will be notified when it changes.- Parameters:
aListener
- The listener to add.
-
removeVerticalViewManagerListener
Removes the givenILcyVerticalViewManagerListener
from this manager. It will no longer be notified about changes to it.- Parameters:
aListener
- The listener to remove.
-