本文整理了Java中org.weasis.core.ui.docking.UIManager.getViewerFactory()
方法的一些代码示例,展示了UIManager.getViewerFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIManager.getViewerFactory()
方法的具体详情如下:
包路径:org.weasis.core.ui.docking.UIManager
类名称:UIManager
方法名:getViewerFactory
暂无
代码示例来源:origin: nroduit/Weasis
public static void openSequenceInDefaultPlugin(List<? extends MediaSeries<? extends MediaElement>> series,
DataExplorerModel model, boolean compareEntryToBuildNewViewer, boolean removeOldSeries) {
ArrayList<String> mimes = new ArrayList<>();
for (MediaSeries<?> s : series) {
String mime = s.getMimeType();
if (mime != null && !mimes.contains(mime)) {
mimes.add(mime);
}
}
for (String mime : mimes) {
SeriesViewerFactory plugin = UIManager.getViewerFactory(mime);
if (plugin != null) {
ArrayList<MediaSeries<? extends MediaElement>> seriesList = new ArrayList<>();
for (MediaSeries<? extends MediaElement> s : series) {
if (mime.equals(s.getMimeType())) {
seriesList.add(s);
}
}
openSequenceInPlugin(plugin, seriesList, model, compareEntryToBuildNewViewer, removeOldSeries);
}
}
}
代码示例来源:origin: nroduit/Weasis
public static void openSequenceInDefaultPlugin(MediaSeries<MediaElement> series, DataExplorerModel model,
boolean compareEntryToBuildNewViewer, boolean removeOldSeries) {
if (series != null) {
String mime = series.getMimeType();
SeriesViewerFactory plugin = UIManager.getViewerFactory(mime);
if (plugin == null) {
plugin = DefaultMimeAppFactory.getInstance();
}
openSequenceInPlugin(plugin, series, model == null ? DefaultDataModel : model, compareEntryToBuildNewViewer,
removeOldSeries);
}
}
代码示例来源:origin: nroduit/Weasis
public void openrelatedSeries(KOSpecialElement koSpecialElement, MediaSeriesGroup patient) {
if (koSpecialElement != null && patient != null) {
SeriesViewerFactory plugin = UIManager.getViewerFactory(DicomMediaIO.SERIES_MIMETYPE);
if (plugin != null && !(plugin instanceof MimeSystemAppFactory)) {
Set<String> koSet = koSpecialElement.getReferencedSeriesInstanceUIDSet();
List<MediaSeries<MediaElement>> seriesList = new ArrayList<>();
for (MediaSeriesGroup st : this.getChildren(patient)) {
for (MediaSeriesGroup s : this.getChildren(st)) {
if (koSet.contains(TagD.getTagValue(s, Tag.SeriesInstanceUID))) {
seriesList.add((MediaSeries<MediaElement>) s);
}
}
}
if (!seriesList.isEmpty()) {
String uid = UUID.randomUUID().toString();
Map<String, Object> props = Collections.synchronizedMap(new HashMap<String, Object>());
props.put(ViewerPluginBuilder.CMP_ENTRY_BUILD_NEW_VIEWER, false);
props.put(ViewerPluginBuilder.BEST_DEF_LAYOUT, false);
props.put(ViewerPluginBuilder.ICON,
new ImageIcon(getClass().getResource("/icon/16x16/key-images.png"))); //$NON-NLS-1$
props.put(ViewerPluginBuilder.UID, uid);
ViewerPluginBuilder builder = new ViewerPluginBuilder(plugin, seriesList, this, props);
ViewerPluginBuilder.openSequenceInPlugin(builder);
this.firePropertyChange(
new ObservableEvent(ObservableEvent.BasicAction.SELECT, uid, null, koSpecialElement));
}
}
}
}
代码示例来源:origin: nroduit/Weasis
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
final SeriesSelectionModel selList = getSeriesSelectionModel();
selList.setOpenningSeries(true);
Map<String, Object> props = Collections.synchronizedMap(new HashMap<String, Object>());
props.put(ViewerPluginBuilder.CMP_ENTRY_BUILD_NEW_VIEWER, true);
props.put(ViewerPluginBuilder.BEST_DEF_LAYOUT, false);
props.put(ViewerPluginBuilder.OPEN_IN_SELECTION, true);
String mime = series.getMimeType();
SeriesViewerFactory plugin = UIManager.getViewerFactory(mime);
if (plugin == null) {
plugin = DefaultMimeAppFactory.getInstance();
}
ArrayList<MediaSeries<MediaElement>> list = new ArrayList<>(1);
list.add(series);
ViewerPluginBuilder builder = new ViewerPluginBuilder(plugin, list, dicomModel, props);
ViewerPluginBuilder.openSequenceInPlugin(builder);
selList.setOpenningSeries(false);
}
}
代码示例来源:origin: nroduit/Weasis
String mime = m.getMimeType();
if (mime != null) {
SeriesViewerFactory plugin = UIManager.getViewerFactory(mime);
if (plugin != null) {
List<MediaSeries<MediaElement>> list = plugins.get(plugin);
代码示例来源:origin: nroduit/Weasis
SeriesViewerFactory plugin = UIManager.getViewerFactory(mime);
if (plugin != null) {
ArrayList<MediaSeries<MediaElement>> seriesList = new ArrayList<>();
代码示例来源:origin: nroduit/Weasis
ref.getReferencedFrameNumber());
keyReferences.addKeyObject(koRef);
SeriesViewerFactory plugin = UIManager.getViewerFactory(DicomMediaIO.SERIES_MIMETYPE);
if (plugin != null && !(plugin instanceof MimeSystemAppFactory)) {
addGraphicstoView(s.getMedia(0, null, null), imgRef);
代码示例来源:origin: nroduit/Weasis
SeriesViewerFactory plugin = UIManager.getViewerFactory(selPlugin);
if (plugin != null && !(plugin instanceof MimeSystemAppFactory)) {
ViewerPluginBuilder.openSequenceInPlugin(plugin, seq, model, true, true);
代码示例来源:origin: nroduit/Weasis
SeriesViewerFactory plugin = UIManager.getViewerFactory(dicomSeries.getMimeType());
if (plugin != null && !(plugin instanceof MimeSystemAppFactory)) {
openPlugin = false;
代码示例来源:origin: nroduit/Weasis
SeriesViewerFactory plugin = UIManager.getViewerFactory(dicomSeries.getMimeType());
if (plugin != null && !(plugin instanceof MimeSystemAppFactory)) {
openPlugin = false;
代码示例来源:origin: nroduit/Weasis
SeriesViewerFactory plugin = UIManager.getViewerFactory(dicomSeries.getMimeType());
if (plugin != null && !(plugin instanceof MimeSystemAppFactory)) {
ViewerPluginBuilder.openSequenceInPlugin(plugin, dicomSeries, dicomModel, true, true);
内容来源于网络,如有侵权,请联系作者删除!