Search in sources :

Example 1 with ActiveViewID

use of cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID in project vcell by virtualcell.

the class ApplicationGeometryPanel method getActiveView.

@Override
public ActiveView getActiveView() {
    Component selectedComponent = tabbedPane.getSelectedComponent();
    ActiveViewID activeViewID = null;
    if (selectedComponent == structureMappingCartoonPanel) {
        activeViewID = ActiveViewID.structure_mapping;
    } else if (selectedComponent == geometryViewer) {
        activeViewID = ActiveViewID.geometry_definition;
    } else if (selectedComponent == spatialEntitiesPanel) {
        activeViewID = ActiveViewID.spatial_entities;
    } else if (selectedComponent == spatialObjectDisplayPanel) {
        activeViewID = ActiveViewID.spatial_objects;
    } else if (selectedComponent == spatialProcessDisplayPanel) {
        activeViewID = ActiveViewID.spatial_processes;
    }
    return new ActiveView(simulationContext, DocumentEditorTreeFolderClass.GEOMETRY_NODE, activeViewID);
}
Also used : ActiveViewID(cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID) JComponent(javax.swing.JComponent) Component(java.awt.Component) ActiveView(cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveView)

Example 2 with ActiveViewID

use of cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID in project vcell by virtualcell.

the class ApplicationProtocolsPanel method getActiveView.

@Override
public ActiveView getActiveView() {
    Component selectedComponent = tabbedPane.getSelectedComponent();
    ActiveViewID activeViewID = null;
    if (selectedComponent == eventsDisplayPanel) {
        activeViewID = ActiveViewID.events;
    } else if (selectedComponent == electricalMembraneMappingPanel) {
        activeViewID = ActiveViewID.electrical;
    } else if (selectedComponent == microscopeMeasurementPanel) {
        activeViewID = ActiveViewID.microscope_measuremments;
    } else if (selectedComponent == rateRulesDisplayPanel) {
        activeViewID = ActiveViewID.rateRules;
    }
    return new ActiveView(simulationContext, DocumentEditorTreeFolderClass.PROTOCOLS_NODE, activeViewID);
}
Also used : ActiveViewID(cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID) JComponent(javax.swing.JComponent) Component(java.awt.Component) ActiveView(cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveView)

Example 3 with ActiveViewID

use of cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID in project vcell by virtualcell.

the class ApplicationSimulationsPanel method getActiveView.

@Override
public ActiveView getActiveView() {
    Component selectedComponent = tabbedPane.getSelectedComponent();
    ActiveViewID activeViewID = null;
    if (selectedComponent == simulationListPanel) {
        activeViewID = ActiveViewID.simulations;
    } else if (selectedComponent == outputFunctionsPanel) {
        activeViewID = ActiveViewID.output_functions;
    } else if (selectedComponent == mathematicsPanel) {
        activeViewID = ActiveViewID.generated_math;
    }
    return new ActiveView(simulationContext, DocumentEditorTreeFolderClass.SIMULATIONS_NODE, activeViewID);
}
Also used : ActiveViewID(cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID) JComponent(javax.swing.JComponent) Component(java.awt.Component) ActiveView(cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveView)

Example 4 with ActiveViewID

use of cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID in project vcell by virtualcell.

the class ApplicationSpecificationsPanel method getActiveView.

@Override
public ActiveView getActiveView() {
    Component selectedComponent = tabbedPane.getSelectedComponent();
    ActiveViewID activeViewID = null;
    for (SpecifierComponent spc : subPanels) {
        if (selectedComponent == spc.component) {
            activeViewID = spc.setter.getActiveView();
            break;
        }
    }
    return new ActiveView(simulationContext, DocumentEditorTreeFolderClass.SPECIFICATIONS_NODE, activeViewID);
}
Also used : ActiveViewID(cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID) JComponent(javax.swing.JComponent) Component(java.awt.Component) ActiveView(cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveView)

Aggregations

ActiveView (cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveView)4 ActiveViewID (cbit.vcell.client.desktop.biomodel.SelectionManager.ActiveViewID)4 Component (java.awt.Component)4 JComponent (javax.swing.JComponent)4