Search in sources :

Example 1 with RowsSetViewUpdater

use of org.cytoscape.internal.select.RowsSetViewUpdater in project cytoscape-impl by cytoscape.

the class CyActivator method initComponents.

private void initComponents(final BundleContext bc, final CyServiceRegistrar serviceRegistrar) {
    CyApplicationManager applicationManager = getService(bc, CyApplicationManager.class);
    CyNetworkViewManager netViewManager = getService(bc, CyNetworkViewManager.class);
    final CytoscapeMenuBar cytoscapeMenuBar = new CytoscapeMenuBar(serviceRegistrar);
    final CytoscapeToolBar cytoscapeToolBar = new CytoscapeToolBar(serviceRegistrar);
    cytoscapeMenus = new CytoscapeMenus(cytoscapeMenuBar, cytoscapeToolBar);
    toolBarEnableUpdater = new ToolBarEnableUpdater(cytoscapeToolBar, serviceRegistrar);
    netSearchBar = new NetworkSearchBar(serviceRegistrar);
    netSearchMediator = new NetworkSearchMediator(netSearchBar, serviceRegistrar);
    netMainPanel = new NetworkMainPanel(netSearchBar, serviceRegistrar);
    netMediator = new NetworkMediator(netMainPanel, serviceRegistrar);
    commandToolPanel = new CommandToolDialog(serviceRegistrar);
    viewComparator = new ViewComparator(netMainPanel);
    gridViewToggleModel = new GridViewToggleModel(GridViewToggleModel.Mode.VIEW);
    netViewMainPanel = new NetworkViewMainPanel(gridViewToggleModel, cytoscapeMenus, viewComparator, serviceRegistrar);
    netViewMediator = new NetworkViewMediator(netViewMainPanel, netMediator, gridViewToggleModel, serviceRegistrar);
    cytoscapeDesktop = new CytoscapeDesktop(cytoscapeMenus, netViewMediator, serviceRegistrar);
    final SessionIO sessionIO = new SessionIO();
    sessionHandler = new SessionHandler(cytoscapeDesktop, netViewMediator, sessionIO, netMainPanel, serviceRegistrar);
    layoutMenuPopulator = new LayoutMenuPopulator(cytoscapeMenuBar, serviceRegistrar);
    cytoscapeMenuPopulator = new CytoscapeMenuPopulator(cytoscapeDesktop, serviceRegistrar);
    layoutSettingsManager = new LayoutSettingsManager(serviceRegistrar);
    helpUserManualTaskFactory = new HelpUserManualTaskFactory(serviceRegistrar);
    helpContactHelpDeskTaskFactory = new HelpContactHelpDeskTaskFactory(serviceRegistrar);
    helpReportABugTaskFactory = new HelpReportABugTaskFactory(serviceRegistrar);
    helpAboutTaskFactory = new HelpAboutTaskFactory(serviceRegistrar);
    cyDesktopManager = new CyDesktopManager(netViewMediator);
    arrangeGridTaskFactory = new ArrangeTaskFactory(GRID, cyDesktopManager, netViewMediator);
    arrangeCascadeTaskFactory = new ArrangeTaskFactory(CASCADE, cyDesktopManager, netViewMediator);
    arrangeHorizontalTaskFactory = new ArrangeTaskFactory(HORIZONTAL, cyDesktopManager, netViewMediator);
    arrangeVerticalTaskFactory = new ArrangeTaskFactory(VERTICAL, cyDesktopManager, netViewMediator);
    preferencesDialogFactory = new PreferencesDialogFactory(serviceRegistrar);
    // cy3preferencesDialogFactory = new Cy3PreferencesDialogFactory(serviceRegistrar);
    bookmarkDialogFactory = new BookmarkDialogFactory(serviceRegistrar);
    undoMonitor = new UndoMonitor(serviceRegistrar);
    rowViewTracker = new RowViewTracker();
    selecteEdgeViewUpdater = new SelectEdgeViewUpdater(rowViewTracker);
    selecteNodeViewUpdater = new SelectNodeViewUpdater(rowViewTracker);
    rowsSetViewUpdater = new RowsSetViewUpdater(rowViewTracker, netViewMediator, serviceRegistrar);
    recentSessionManager = new RecentSessionManager(serviceRegistrar);
    netSelectionMediator = new NetworkSelectionMediator(netMainPanel, netViewMainPanel, serviceRegistrar);
    // /// CyActions ////
    undoAction = new UndoAction(serviceRegistrar);
    redoAction = new RedoAction(serviceRegistrar);
    printAction = new PrintAction(applicationManager, netViewManager, serviceRegistrar);
    exitAction = new ExitAction(serviceRegistrar);
    // cy3preferenceAction = new Cy3PreferenceAction(cytoscapeDesktop, cy3preferencesDialogFactory);
    preferenceAction = new PreferenceAction(cytoscapeDesktop, preferencesDialogFactory);
    bookmarkAction = new BookmarkAction(cytoscapeDesktop, bookmarkDialogFactory);
    settingsAction = new SettingsAction(layoutSettingsManager, serviceRegistrar);
    cytoPanelWestAction = new CytoPanelAction(WEST, true, cytoscapeDesktop, 1.0f);
    cytoPanelSouthAction = new CytoPanelAction(SOUTH, true, cytoscapeDesktop, 1.1f);
    cytoPanelEastAction = new CytoPanelAction(EAST, false, cytoscapeDesktop, 1.2f);
    cytoPanelSouthWestAction = new CytoPanelAction(SOUTH_WEST, false, cytoscapeDesktop, 1.3f);
    cytoPanelCommandAction = new CytoPanelAction(BOTTOM, false, cytoscapeDesktop, 1.35f);
    starterPanelAction = new StarterPanelAction(1.4f, cytoscapeDesktop);
    detachedViewToolBarAction = new DetachedViewToolBarAction(1.5f, netViewMediator);
    closeWindowAction = new CloseWindowAction(6.1f, netViewMediator);
    createNetworkViewsAction = new CreateNetworkViewsAction(3.0f, serviceRegistrar);
    destroyNetworkViewsAction = new DestroyNetworkViewsAction(3.1f, serviceRegistrar);
    destroyNetworksAction = new DestroyNetworksAction(3.2f, netMainPanel, serviceRegistrar);
    exportNetworkAction = new ExportNetworkAction(1000.1f, serviceRegistrar);
    exportImageAction = new ExportImageAction(1000.2f, serviceRegistrar);
}
Also used : NetworkSearchMediator(org.cytoscape.internal.view.NetworkSearchMediator) SettingsAction(org.cytoscape.internal.layout.ui.SettingsAction) CytoscapeToolBar(org.cytoscape.internal.view.CytoscapeToolBar) ExportNetworkAction(org.cytoscape.internal.actions.ExportNetworkAction) ToolBarEnableUpdater(org.cytoscape.internal.view.ToolBarEnableUpdater) CytoscapeDesktop(org.cytoscape.internal.view.CytoscapeDesktop) SelectNodeViewUpdater(org.cytoscape.internal.select.SelectNodeViewUpdater) RedoAction(org.cytoscape.internal.undo.RedoAction) CloseWindowAction(org.cytoscape.internal.actions.CloseWindowAction) HelpReportABugTaskFactory(org.cytoscape.internal.view.help.HelpReportABugTaskFactory) RowViewTracker(org.cytoscape.internal.select.RowViewTracker) StarterPanelAction(org.cytoscape.internal.actions.StarterPanelAction) DetachedViewToolBarAction(org.cytoscape.internal.actions.DetachedViewToolBarAction) CyNetworkViewManager(org.cytoscape.view.model.CyNetworkViewManager) DestroyNetworkViewsAction(org.cytoscape.internal.actions.DestroyNetworkViewsAction) ArrangeTaskFactory(org.cytoscape.internal.view.help.ArrangeTaskFactory) NetworkViewMainPanel(org.cytoscape.internal.view.NetworkViewMainPanel) LayoutSettingsManager(org.cytoscape.internal.layout.ui.LayoutSettingsManager) DestroyNetworksAction(org.cytoscape.internal.actions.DestroyNetworksAction) CyApplicationManager(org.cytoscape.application.CyApplicationManager) SessionIO(org.cytoscape.internal.io.SessionIO) NetworkViewMediator(org.cytoscape.internal.view.NetworkViewMediator) LayoutMenuPopulator(org.cytoscape.internal.layout.ui.LayoutMenuPopulator) NetworkSearchBar(org.cytoscape.internal.view.NetworkSearchBar) ExitAction(org.cytoscape.internal.actions.ExitAction) SelectEdgeViewUpdater(org.cytoscape.internal.select.SelectEdgeViewUpdater) BookmarkDialogFactory(org.cytoscape.internal.dialogs.BookmarkDialogFactory) PrintAction(org.cytoscape.internal.actions.PrintAction) NetworkMainPanel(org.cytoscape.internal.view.NetworkMainPanel) CreateNetworkViewsAction(org.cytoscape.internal.actions.CreateNetworkViewsAction) GridViewToggleModel(org.cytoscape.internal.view.GridViewToggleModel) RowsSetViewUpdater(org.cytoscape.internal.select.RowsSetViewUpdater) NetworkMediator(org.cytoscape.internal.view.NetworkMediator) BookmarkAction(org.cytoscape.internal.actions.BookmarkAction) CytoscapeMenuPopulator(org.cytoscape.internal.view.CytoscapeMenuPopulator) RecentSessionManager(org.cytoscape.internal.actions.RecentSessionManager) PreferenceAction(org.cytoscape.internal.actions.PreferenceAction) NetworkSelectionMediator(org.cytoscape.internal.view.NetworkSelectionMediator) ExportImageAction(org.cytoscape.internal.actions.ExportImageAction) CommandToolDialog(org.cytoscape.internal.command.CommandToolDialog) CytoPanelAction(org.cytoscape.internal.actions.CytoPanelAction) HelpAboutTaskFactory(org.cytoscape.internal.view.help.HelpAboutTaskFactory) UndoMonitor(org.cytoscape.internal.util.undo.UndoMonitor) PreferencesDialogFactory(org.cytoscape.internal.dialogs.PreferencesDialogFactory) CytoscapeMenus(org.cytoscape.internal.view.CytoscapeMenus) CytoscapeMenuBar(org.cytoscape.internal.view.CytoscapeMenuBar) HelpUserManualTaskFactory(org.cytoscape.internal.view.help.HelpUserManualTaskFactory) HelpContactHelpDeskTaskFactory(org.cytoscape.internal.view.help.HelpContactHelpDeskTaskFactory) CyDesktopManager(org.cytoscape.internal.view.CyDesktopManager) UndoAction(org.cytoscape.internal.undo.UndoAction)

Aggregations

CyApplicationManager (org.cytoscape.application.CyApplicationManager)1 BookmarkAction (org.cytoscape.internal.actions.BookmarkAction)1 CloseWindowAction (org.cytoscape.internal.actions.CloseWindowAction)1 CreateNetworkViewsAction (org.cytoscape.internal.actions.CreateNetworkViewsAction)1 CytoPanelAction (org.cytoscape.internal.actions.CytoPanelAction)1 DestroyNetworkViewsAction (org.cytoscape.internal.actions.DestroyNetworkViewsAction)1 DestroyNetworksAction (org.cytoscape.internal.actions.DestroyNetworksAction)1 DetachedViewToolBarAction (org.cytoscape.internal.actions.DetachedViewToolBarAction)1 ExitAction (org.cytoscape.internal.actions.ExitAction)1 ExportImageAction (org.cytoscape.internal.actions.ExportImageAction)1 ExportNetworkAction (org.cytoscape.internal.actions.ExportNetworkAction)1 PreferenceAction (org.cytoscape.internal.actions.PreferenceAction)1 PrintAction (org.cytoscape.internal.actions.PrintAction)1 RecentSessionManager (org.cytoscape.internal.actions.RecentSessionManager)1 StarterPanelAction (org.cytoscape.internal.actions.StarterPanelAction)1 CommandToolDialog (org.cytoscape.internal.command.CommandToolDialog)1 BookmarkDialogFactory (org.cytoscape.internal.dialogs.BookmarkDialogFactory)1 PreferencesDialogFactory (org.cytoscape.internal.dialogs.PreferencesDialogFactory)1 SessionIO (org.cytoscape.internal.io.SessionIO)1 LayoutMenuPopulator (org.cytoscape.internal.layout.ui.LayoutMenuPopulator)1