org.weasis.core.ui.docking.UIManager.closeSeriesViewerType()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中org.weasis.core.ui.docking.UIManager.closeSeriesViewerType()方法的一些代码示例,展示了UIManager.closeSeriesViewerType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIManager.closeSeriesViewerType()方法的具体详情如下:
包路径:org.weasis.core.ui.docking.UIManager
类名称:UIManager
方法名:closeSeriesViewerType

UIManager.closeSeriesViewerType介绍

暂无

代码示例

代码示例来源:origin: nroduit/Weasis

@Deactivate
  protected void deactivate(ComponentContext context) {
    UIManager.closeSeriesViewerType(AuContainer.class);
  }
}

代码示例来源:origin: nroduit/Weasis

@Deactivate
  protected void deactivate(ComponentContext context) {
    UIManager.closeSeriesViewerType(WaveContainer.class);
  }
}

代码示例来源:origin: nroduit/Weasis

@Deactivate
protected void deactivate(ComponentContext context) {
  UIManager.closeSeriesViewerType(SRContainer.class);
}

代码示例来源:origin: nroduit/Weasis

@Override
public void stop(BundleContext bundleContext) throws Exception {
  // Save preferences only if EventManager has been initialized
  if (!BundlePreferences.isNullStaticFieldValue(EventManager.class, "instance")) { //$NON-NLS-1$
    EventManager.getInstance().savePreferences(bundleContext);
  }
  UIManager.EXPLORER_PLUGIN_TOOLBARS.removeIf(b -> b instanceof ImportToolBar);
  UIManager.closeSeriesViewerType(View2dContainer.class);
}

代码示例来源:origin: nroduit/Weasis

@Override
public SeriesViewer createSeriesViewer(Map<String, Object> properties) {
  GridBagLayoutModel model = AuContainer.DEFAULT_VIEW;
  String uid = null;
  if (properties != null) {
    Object obj = properties.get(org.weasis.core.api.image.GridBagLayoutModel.class.getName());
    if (obj instanceof GridBagLayoutModel) {
      model = (GridBagLayoutModel) obj;
    }
    // Set UID
    Object val = properties.get(ViewerPluginBuilder.UID);
    if (val instanceof String) {
      uid = (String) val;
    }
  }
  AuContainer instance = new AuContainer(model, uid);
  if (properties != null) {
    Object obj = properties.get(DataExplorerModel.class.getName());
    if (obj instanceof DicomModel) {
      // Register the PropertyChangeListener
      DicomModel m = (DicomModel) obj;
      m.addPropertyChangeListener(instance);
    }
  }
  // Close all the other audio views
  UIManager.closeSeriesViewerType(AuContainer.class);
  return instance;
}

代码示例来源:origin: nroduit/Weasis

@Override
public void stop(BundleContext bundleContext) throws Exception {
  // Save preferences
  ImageViewerPlugin<DicomImageElement> container = EventManager.getInstance().getSelectedView2dContainer();
  if (container instanceof MPRContainer) {
    // Remove crosshair tool
    container.setSelected(false);
  }
  EventManager.getInstance().savePreferences(bundleContext);
  UIManager.closeSeriesViewerType(MPRContainer.class);
  UIManager.closeSeriesViewerType(View2dContainer.class);
}

相关文章