本文整理了Java中org.weasis.core.ui.docking.UIManager.getExplorerplugin()
方法的一些代码示例,展示了UIManager.getExplorerplugin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIManager.getExplorerplugin()
方法的具体详情如下:
包路径:org.weasis.core.ui.docking.UIManager
类名称:UIManager
方法名:getExplorerplugin
暂无
代码示例来源:origin: nroduit/Weasis
@Override
public List<Action> getOpenActions() {
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView == null) {
return Arrays.asList(preferencesAction);
}
// In case DICOM explorer has been loaded get the first import action
return dicomView.getOpenImportDialogAction().subList(0, 1);
}
代码示例来源:origin: nroduit/Weasis
private boolean dropDicomFiles(List<File> files) {
if (files != null) {
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView == null) {
return false;
}
DicomModel model = (DicomModel) dicomView.getDataExplorerModel();
LoadLocalDicom dicom = new LoadLocalDicom(files.stream().toArray(File[]::new), true, model);
DicomModel.LOADING_EXECUTOR.execute(dicom);
return true;
}
return false;
}
}
代码示例来源:origin: nroduit/Weasis
public static void closeSeriesViewer(AuContainer container) {
// Unregister the PropertyChangeListener
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null) {
dicomView.getDataExplorerModel().removePropertyChangeListener(container);
}
}
代码示例来源:origin: nroduit/Weasis
public static void closeSeriesViewer(View2dContainer view2dContainer) {
// Unregister the PropertyChangeListener
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null) {
dicomView.getDataExplorerModel().removePropertyChangeListener(view2dContainer);
}
}
代码示例来源:origin: nroduit/Weasis
public static SeriesSelectionModel getSeriesSelectionModel() {
DataExplorerView explorer = UIManager.getExplorerplugin(DicomExplorer.NAME);
return explorer instanceof DicomExplorer ? ((DicomExplorer) explorer).getSelectionList()
: new SeriesSelectionModel(null);
}
代码示例来源:origin: nroduit/Weasis
public static void closeSeriesViewer(SRContainer mprContainer) {
// Unregister the PropertyChangeListener
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null) {
dicomView.getDataExplorerModel().removePropertyChangeListener(mprContainer);
}
}
代码示例来源:origin: nroduit/Weasis
public static void closeSeriesViewer(MPRContainer mprContainer) {
// Unregister the PropertyChangeListener
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null) {
dicomView.getDataExplorerModel().removePropertyChangeListener(mprContainer);
}
}
代码示例来源:origin: nroduit/Weasis
public static void closeSeriesViewer(WaveContainer container) {
// Unregister the PropertyChangeListener
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null) {
dicomView.getDataExplorerModel().removePropertyChangeListener(container);
}
}
代码示例来源:origin: nroduit/Weasis
@Override
public void stop(BundleContext context) throws Exception {
FileUtil.storeProperties(new File(BundlePreferences.getDataFolder(context), "import-export.properties"), //$NON-NLS-1$
IMPORT_EXPORT_PERSISTENCE, null);
// Save preferences
DicomManager.getInstance().savePreferences();
DicomModel.LOADING_EXECUTOR.shutdownNow();
DataExplorerView explorer = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (explorer instanceof DicomExplorer) {
DicomExplorer dexp = (DicomExplorer) explorer;
// Remove image in viewers, in image cache and close the image stream
((DicomModel) dexp.getDataExplorerModel()).dispose();
}
}
}
代码示例来源:origin: nroduit/Weasis
checkingModel.setCheckingMode(CheckingMode.PROPAGATE_PRESERVING_UNCHECK);
DataExplorerView explorer = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (explorer instanceof DicomExplorer) {
代码示例来源:origin: nroduit/Weasis
private static void updateViewerUI(BasicAction action) {
ImageViewerPlugin<DicomImageElement> view = EventManager.getInstance().getSelectedView2dContainer();
if (view instanceof View2dContainer) {
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
DataExplorerModel model = dicomView.getDataExplorerModel();
if (model != null) {
model.firePropertyChange(new ObservableEvent(action, view, null, view));
}
}
}
}
代码示例来源:origin: nroduit/Weasis
SOPInstanceReference ref = imgRef.getSopInstanceReference();
if (ref != null) {
DataExplorerView dicomView = org.weasis.core.ui.docking.UIManager.getExplorerplugin(DicomExplorer.NAME);
DicomModel model = null;
if (dicomView != null) {
代码示例来源:origin: nroduit/Weasis
@Override
public void setSelected(boolean selected) {
if (selected) {
eventManager.setSelectedView2dContainer(this);
// Send event to select the related patient in Dicom Explorer.
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null && dicomView.getDataExplorerModel() instanceof DicomModel) {
dicomView.getDataExplorerModel().firePropertyChange(
new ObservableEvent(ObservableEvent.BasicAction.SELECT, this, null, getGroupID()));
}
if (ecgview != null && !TOOLS.isEmpty() && TOOLS.get(0) instanceof MeasureAnnotationTool) {
MeasureAnnotationTool tool = (MeasureAnnotationTool) TOOLS.get(0);
ecgview.setAnnotationTool(tool);
tool.setSeries(ecgview.getSeries());
ecgview.updateMarkersTable();
}
} else {
eventManager.setSelectedView2dContainer(null);
}
}
代码示例来源:origin: nroduit/Weasis
@Override
public void setSelected(boolean selected) {
if (selected) {
eventManager.setSelectedView2dContainer(this);
// Send event to select the related patient in Dicom Explorer.
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null && dicomView.getDataExplorerModel() instanceof DicomModel) {
dicomView.getDataExplorerModel().firePropertyChange(
new ObservableEvent(ObservableEvent.BasicAction.SELECT, this, null, getGroupID()));
}
} else {
eventManager.setSelectedView2dContainer(null);
}
}
代码示例来源:origin: nroduit/Weasis
private void printHeader(Graphics2D g2, int midWidth) {
DataExplorerView dicomView = org.weasis.core.ui.docking.UIManager.getExplorerplugin(DicomExplorer.NAME);
DicomModel model = null;
if (dicomView != null) {
代码示例来源:origin: nroduit/Weasis
@Override
public void setSelected(boolean selected) {
if (selected) {
eventManager.setSelectedView2dContainer(this);
// Send event to select the related patient in Dicom Explorer.
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null && dicomView.getDataExplorerModel() instanceof DicomModel) {
dicomView.getDataExplorerModel().firePropertyChange(
new ObservableEvent(ObservableEvent.BasicAction.SELECT, this, null, getGroupID()));
}
} else {
eventManager.setSelectedView2dContainer(null);
}
}
代码示例来源:origin: nroduit/Weasis
@Override
public void setSelected(boolean selected) {
if (selected) {
eventManager.setSelectedView2dContainer(this);
// Send event to select the related patient in Dicom Explorer.
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null && dicomView.getDataExplorerModel() instanceof DicomModel) {
dicomView.getDataExplorerModel().firePropertyChange(
new ObservableEvent(ObservableEvent.BasicAction.SELECT, this, null, getGroupID()));
}
} else {
eventManager.setSelectedView2dContainer(null);
}
}
代码示例来源:origin: nroduit/Weasis
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
DataExplorerModel model = null;
SeriesSelectionModel selList = null;
代码示例来源:origin: nroduit/Weasis
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null) {
eventManager.addSeriesViewerListener((SeriesViewerListener) dicomView);
代码示例来源:origin: nroduit/Weasis
DataExplorerView dicomView = UIManager.getExplorerplugin(DicomExplorer.NAME);
if (dicomView != null && dicomView.getDataExplorerModel() instanceof DicomModel) {
dicomView.getDataExplorerModel().firePropertyChange(
内容来源于网络,如有侵权,请联系作者删除!