Search in sources :

Example 11 with ChildWindow

use of cbit.vcell.client.ChildWindowManager.ChildWindow in project vcell by virtualcell.

the class BioModelWindowManager method remove.

/**
 * Insert the method's description here.
 * Creation date: (7/20/2004 1:20:40 PM)
 */
private void remove(ApplicationComponents appComponents, SimulationContext sc) {
    sc.removePropertyChangeListener(this);
    getApplicationsHash().remove(sc);
    for (ChildWindow childWindow : appComponents.getDataViewerFrames(getJPanel())) {
        childWindow.close();
    }
}
Also used : ChildWindow(cbit.vcell.client.ChildWindowManager.ChildWindow)

Example 12 with ChildWindow

use of cbit.vcell.client.ChildWindowManager.ChildWindow in project vcell by virtualcell.

the class BioModelWindowManager method showMIRIAMWindow.

public void showMIRIAMWindow() {
    ChildWindowManager childWindowManager = ChildWindowManager.findChildWindowManager(getJPanel());
    ChildWindow childWindow = childWindowManager.getChildWindowFromContext(MIRIAM_WINDOW);
    if (childWindow == null) {
        MIRIAMAnnotationViewer miriamAnnotationViewer = new MIRIAMAnnotationViewer();
        miriamAnnotationViewer.setBiomodel(bioModel);
        childWindow = childWindowManager.addChildWindow(miriamAnnotationViewer, MIRIAM_WINDOW, "View/Add/Delete/Edit MIRIAM Annotation");
        childWindow.setSize(600, 400);
        childWindow.setResizable(true);
    } else {
        VCAssert.assertTrue(childWindow.isShowing(), "Invisible MIRIAM Window");
    }
    childWindow.show();
}
Also used : MIRIAMAnnotationViewer(cbit.vcell.xml.gui.MIRIAMAnnotationViewer) ChildWindow(cbit.vcell.client.ChildWindowManager.ChildWindow)

Example 13 with ChildWindow

use of cbit.vcell.client.ChildWindowManager.ChildWindow in project vcell by virtualcell.

the class BioModelWindowManager method addResultsFrame.

/**
 * Insert the method's description here.
 * Creation date: (6/11/2004 7:32:07 AM)
 * @param newDocument cbit.vcell.document.VCDocument
 */
public void addResultsFrame(SimulationWindow simWindow) {
    ApplicationComponents appComponents = getApplicationsHash().get(simWindow.getSimOwner());
    appComponents.addDataViewer(simWindow);
    ChildWindowManager childWindowManager = ChildWindowManager.findChildWindowManager(getJPanel());
    ChildWindow childWindow = childWindowManager.getChildWindowFromContext(simWindow);
    if (childWindow == null) {
        childWindow = childWindowManager.addChildWindow(simWindow.getDataViewer(), simWindow);
        simWindow.setChildWindow(childWindow);
        childWindow.setIsCenteredOnParent();
        childWindow.pack();
    }
    childWindow.show();
}
Also used : ApplicationComponents(cbit.vcell.client.desktop.biomodel.ApplicationComponents) ChildWindow(cbit.vcell.client.ChildWindowManager.ChildWindow)

Example 14 with ChildWindow

use of cbit.vcell.client.ChildWindowManager.ChildWindow in project vcell by virtualcell.

the class ReactionCartoonTool method showReactionBrowserDialog.

public void showReactionBrowserDialog(Structure struct, Point location) throws Exception {
    if (getReactionCartoon() == null || getDocumentManager() == null || getDialogOwner(getGraphPane()) == null) {
        return;
    }
    DBReactionWizardPanel dbrqWiz = new DBReactionWizardPanel();
    dbrqWiz.setModel(getModel());
    dbrqWiz.setStructure(struct);
    dbrqWiz.setDocumentManager(getDocumentManager());
    dbrqWiz.setRXPasteInterface(ReactionCartoonTool.this);
    ChildWindowManager childWindowManager = ChildWindowManager.findChildWindowManager(this.getGraphPane());
    ChildWindow childWindow = childWindowManager.addChildWindow(dbrqWiz, SEARCHABLE_REACTIONS_CONTEXT_OBJECT, "Create Reaction within structure '" + struct.getName() + "'");
    // this is needed so that the wizard can close itself.
    dbrqWiz.setChildWindow(childWindow);
    childWindow.setIsCenteredOnParent();
    childWindow.pack();
    childWindow.show();
}
Also used : DBReactionWizardPanel(cbit.vcell.model.gui.DBReactionWizardPanel) ChildWindowManager(cbit.vcell.client.ChildWindowManager) ChildWindow(cbit.vcell.client.ChildWindowManager.ChildWindow)

Example 15 with ChildWindow

use of cbit.vcell.client.ChildWindowManager.ChildWindow in project vcell by virtualcell.

the class FRAPDataPanel method showCurve.

private void showCurve(String[] varNames, double[] independent, double[][] dependents) {
    PlotPane plotter = new PlotPane();
    PlotData[] plotDatas = new PlotData[dependents.length];
    for (int i = 0; i < plotDatas.length; i++) {
        plotDatas[i] = new PlotData(independent, dependents[i]);
    }
    Plot2D plot2D = new Plot2D(null, null, varNames, plotDatas);
    plotter.setPlot2D(plot2D);
    ChildWindow plotChildWindow = ChildWindowManager.findChildWindowManager(this).addChildWindow(plotter, plotter, "ROI time course", true);
    plotChildWindow.setTitle("ROI time course");
    plotChildWindow.setIsCenteredOnParent();
    plotChildWindow.setSize(new Dimension(400, 400));
    plotChildWindow.showModal();
}
Also used : PlotData(cbit.plot.PlotData) PlotPane(cbit.plot.gui.PlotPane) Plot2D(cbit.plot.Plot2D) Dimension(java.awt.Dimension) ChildWindow(cbit.vcell.client.ChildWindowManager.ChildWindow)

Aggregations

ChildWindow (cbit.vcell.client.ChildWindowManager.ChildWindow)35 ChildWindowManager (cbit.vcell.client.ChildWindowManager)14 Hashtable (java.util.Hashtable)10 Dimension (java.awt.Dimension)8 AsynchClientTask (cbit.vcell.client.task.AsynchClientTask)7 Vector (java.util.Vector)5 UserCancelException (org.vcell.util.UserCancelException)5 SimulationWindow (cbit.vcell.client.desktop.simulation.SimulationWindow)4 SinglePoint (cbit.vcell.geometry.SinglePoint)4 Simulation (cbit.vcell.solver.Simulation)4 Point (java.awt.Point)4 PlotPane (cbit.plot.gui.PlotPane)3 DataViewer (cbit.vcell.client.data.DataViewer)3 VariableType (cbit.vcell.math.VariableType)3 SpatialSelection (cbit.vcell.simdata.SpatialSelection)3 SpatialSelectionVolume (cbit.vcell.simdata.SpatialSelectionVolume)3 SimulationInfo (cbit.vcell.solver.SimulationInfo)3 VCSimulationDataIdentifier (cbit.vcell.solver.VCSimulationDataIdentifier)3 PropertyVetoException (java.beans.PropertyVetoException)3 DataAccessException (org.vcell.util.DataAccessException)3