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
ILcyVerticalViewManagerListeners 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVerticalViewComponent(Component aVerticalViewComponent) Adds the givenComponentto thisTLcyVerticalViewManager.voidAdds the givenILcyVerticalViewManagerListenerto this manager which will be notified when it changes.getVerticalViewComponent(int aIndex) Returns the vertical view at the given index.intReturns the number of vertical view components registered with this manager.voidremoveVerticalViewComponent(Component aVerticalViewComponent) Removes the givenComponentfrom thisTLcyVerticalViewManager.voidRemoves the givenILcyVerticalViewManagerListenerfrom 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 givenComponentto thisTLcyVerticalViewManager. This method shouldn't normally be used, see class comment.- Parameters:
aVerticalViewComponent- The vertical view component to add.
-
removeVerticalViewComponent
Removes the givenComponentfrom thisTLcyVerticalViewManager. This method shouldn't normally be used, see class comment.- Parameters:
aVerticalViewComponent- The vertical view component to remove.
-
addVerticalViewManagerListener
Adds the givenILcyVerticalViewManagerListenerto this manager which will be notified when it changes.- Parameters:
aListener- The listener to add.
-
removeVerticalViewManagerListener
Removes the givenILcyVerticalViewManagerListenerfrom this manager. It will no longer be notified about changes to it.- Parameters:
aListener- The listener to remove.
-