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();
}
}
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();
}
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();
}
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();
}
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();
}
Aggregations