use of cbit.vcell.client.DataViewerManager in project vcell by virtualcell.
the class DataViewer method setDataViewerManager.
/**
* Sets the dataViewerManager property (cbit.vcell.client.DataViewerManager) value.
* @param dataViewerManager The new value for the property.
* @exception java.beans.PropertyVetoException The exception description.
* @see #getDataViewerManager
*/
public void setDataViewerManager(DataViewerManager dataViewerManager) throws java.beans.PropertyVetoException {
DataViewerManager oldValue = fieldDataViewerManager;
fieldDataViewerManager = dataViewerManager;
firePropertyChange("dataViewerManager", oldValue, dataViewerManager);
}
use of cbit.vcell.client.DataViewerManager in project vcell by virtualcell.
the class DisplayTimeSeriesOp method displayImageTimeSeries.
public void displayImageTimeSeries(final ImageTimeSeries<? extends Image> imageTimeSeries, final String title, final WindowListener windowListener) throws ImageException, IOException {
try {
System.out.println("starting to prepare data for time series viewing");
final PDEDataViewer pdeDataViewer = new PDEDataViewer();
DataSetControllerProvider dataSetControllerProvider;
try {
dataSetControllerProvider = getDataSetControllerProvider(imageTimeSeries, pdeDataViewer);
} catch (ImageException | IOException e1) {
e1.printStackTrace();
throw new RuntimeException(e1.getMessage(), e1);
}
VCDataManager vcDataManager = new VCDataManager(dataSetControllerProvider);
OutputContext outputContext = new OutputContext(new AnnotatedFunction[0]);
final VCDataIdentifier vcDataIdentifier = new VCDataIdentifier() {
public User getOwner() {
return new User("nouser", null);
}
public KeyValue getDataKey() {
return null;
}
public String getID() {
return "mydata";
}
};
PDEDataManager pdeDataManager = new PDEDataManager(outputContext, vcDataManager, vcDataIdentifier);
final ClientPDEDataContext myPdeDataContext = new ClientPDEDataContext(pdeDataManager);
final RequestManager requestManager = new RequestManagerAdapter() {
};
final DataViewerManager dataViewerManager = new DataViewerManager() {
public void dataJobMessage(DataJobEvent event) {
}
public void exportMessage(ExportEvent event) {
}
public void addDataListener(DataListener newListener) {
}
public UserPreferences getUserPreferences() {
// getRequestManager().getUserPreferences();
return null;
}
public void removeDataListener(DataListener newListener) {
}
public void startExport(Component requester, OutputContext outputContext, ExportSpecs exportSpecs) {
// getLocalRequestManager().startExport(outputContext, FieldDataWindowManager.this, exportSpecs);
}
public void simStatusChanged(SimStatusEvent simStatusEvent) {
}
public User getUser() {
return new User("dummy", new KeyValue("123"));
// return getRequestManager().getDocumentManager().getUser();
}
public RequestManager getRequestManager() {
return requestManager;
}
};
System.out.println("ready to display time series");
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
JFrame jframe = new TopLevelFrame();
jframe.setTitle(title);
jframe.getContentPane().add(pdeDataViewer);
jframe.setSize(1000, 600);
jframe.setVisible(true);
if (windowListener != null) {
jframe.addWindowListener(windowListener);
}
try {
pdeDataViewer.setDataViewerManager(dataViewerManager);
} catch (PropertyVetoException e) {
e.printStackTrace();
}
pdeDataViewer.setPdeDataContext(myPdeDataContext);
}
});
} catch (InvocationTargetException | InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
use of cbit.vcell.client.DataViewerManager in project vcell by virtualcell.
the class PDEExportDataPanel method setDataViewerManager.
/**
* Sets the dataViewerManager property (cbit.vcell.client.DataViewerManager) value.
* @param dataViewerManager The new value for the property.
* @see #getDataViewerManager
*/
public void setDataViewerManager(DataViewerManager dataViewerManager) {
DataViewerManager oldValue = fieldDataViewerManager;
fieldDataViewerManager = dataViewerManager;
firePropertyChange("dataViewerManager", oldValue, dataViewerManager);
}
Aggregations