Tabnine Logo
ObservableEvent.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.weasis.core.api.explorer.ObservableEvent
constructor

Best Java code snippets using org.weasis.core.api.explorer.ObservableEvent.<init> (Showing top 20 results out of 315)

origin: nroduit/Weasis

@Override
protected void done() {
  dicomModel
    .firePropertyChange(new ObservableEvent(ObservableEvent.BasicAction.LOADING_STOP, dicomModel, null, this));
  LOGGER.info("End of loading DICOM locally"); //$NON-NLS-1$
}
origin: nroduit/Weasis

@Override
protected void done() {
  dicomModel
    .firePropertyChange(new ObservableEvent(ObservableEvent.BasicAction.LOADING_STOP, dicomModel, null, this));
  LOGGER.info("End of loading DICOM locally"); //$NON-NLS-1$
}
origin: nroduit/Weasis

@Override
protected void done() {
  dicomModel.firePropertyChange(
    new ObservableEvent(ObservableEvent.BasicAction.LOADING_STOP, dicomModel, null, this));
}
origin: nroduit/Weasis

@Override
protected void done() {
  dicomModel.firePropertyChange(
    new ObservableEvent(ObservableEvent.BasicAction.LOADING_STOP, dicomModel, null, this));
}
origin: nroduit/Weasis

@Override
protected Boolean doInBackground() throws Exception {
  dicomModel.firePropertyChange(
    new ObservableEvent(ObservableEvent.BasicAction.LOADING_START, dicomModel, null, this));
  if (EXPORT_FORMAT[0].equals(format)) {
    writeDicom(this, exportDir, model, false);
  } else if (EXPORT_FORMAT[1].equals(format)) {
    writeDicom(this, exportDir, model, true);
  } else {
    writeOther(this, exportDir, model, format);
  }
  return true;
}
origin: nroduit/Weasis

private void notifyImagesRemoved(Collection<AcquireImageInfo> imageCollection) {
  firePropertyChange(
    new ObservableEvent(ObservableEvent.BasicAction.REMOVE, AcquireManager.this, null, imageCollection));
}
origin: nroduit/Weasis

private void notifyImagesAdded(Collection<AcquireImageInfo> imageInfoCollection) {
  firePropertyChange(
    new ObservableEvent(ObservableEvent.BasicAction.ADD, AcquireManager.this, null, imageInfoCollection));
}
origin: nroduit/Weasis

private void notifyImageRemoved(AcquireImageInfo imageElement) {
  firePropertyChange(
    new ObservableEvent(ObservableEvent.BasicAction.REMOVE, AcquireManager.this, null, imageElement));
}
origin: nroduit/Weasis

public void handleFocusAfterClosing() {
  int size = UIManager.VIEWER_PLUGINS.size();
  if (size > 0) {
    ViewerPlugin<?> lp = UIManager.VIEWER_PLUGINS.get(size - 1);
    if (lp != null) {
      lp.dockable.toFront();
    }
  } else {
    ViewerPluginBuilder.DefaultDataModel.firePropertyChange(
      new ObservableEvent(ObservableEvent.BasicAction.NULL_SELECTION, ViewerPlugin.this, null, null));
  }
}
origin: nroduit/Weasis

@Override
protected Boolean doInBackground() throws Exception {
  dicomModel
    .firePropertyChange(new ObservableEvent(ObservableEvent.BasicAction.LOADING_START, dicomModel, null, this));
  addSelectionAndnotify();
  return true;
}
origin: nroduit/Weasis

@Override
protected Boolean doInBackground() throws Exception {
  dicomModel
    .firePropertyChange(new ObservableEvent(ObservableEvent.BasicAction.LOADING_START, dicomModel, null, this));
  addSelectionAndnotify(files, true);
  return true;
}
origin: nroduit/Weasis

public void removeTopGroup(MediaSeriesGroup topGroup) {
  if (topGroup != null) {
    firePropertyChange(
      new ObservableEvent(ObservableEvent.BasicAction.REMOVE, AbstractFileModel.this, null, topGroup));
    Collection<MediaSeriesGroup> seriesList = getChildren(topGroup);
    for (Iterator<MediaSeriesGroup> it = seriesList.iterator(); it.hasNext();) {
      it.next().dispose();
    }
    removeHierarchyNode(MediaSeriesGroupNode.rootNode, topGroup);
    LOGGER.info("Remove Group: {}", topGroup); //$NON-NLS-1$
  }
}
origin: nroduit/Weasis

public static void openSequenceInPlugin(ViewerPluginBuilder builder) {
  if (builder == null) {
    return;
  }
  DataExplorerModel model = builder.getModel();
  model.firePropertyChange(new ObservableEvent(ObservableEvent.BasicAction.REGISTER, model, null, builder));
}
origin: nroduit/Weasis

public void removeSeriesWithoutDisposingMedias(MediaSeriesGroup dicomSeries) {
  if (dicomSeries != null) {
    // remove first series in UI (Dicom Explorer, Viewer using this series)
    firePropertyChange(
      new ObservableEvent(ObservableEvent.BasicAction.REMOVE, DicomModel.this, null, dicomSeries));
    // remove in the data model
    MediaSeriesGroup studyGroup = getParent(dicomSeries, DicomModel.study);
    removeHierarchyNode(studyGroup, dicomSeries);
    LOGGER.info("Remove Series (no dispose): {}", dicomSeries); //$NON-NLS-1$
  }
}
origin: nroduit/Weasis

  private static void updateViewerUI(BasicAction action) {
    ImageViewerPlugin<ImageElement> view = EventManager.getInstance().getSelectedView2dContainer();
    if (view instanceof View2dContainer) {
      ViewerPluginBuilder.DefaultDataModel.firePropertyChange(new ObservableEvent(action, view, null, view));
    }
  }
}
origin: nroduit/Weasis

@Override
public DataExplorerView createDataExplorerView(Hashtable<String, Object> properties) {
  if (explorer == null) {
    explorer = new DicomExplorer(model);
    model.addPropertyChangeListener(explorer);
    UIManager.EXPLORER_PLUGIN_TOOLBARS.add(new ImportToolBar(5, explorer));
    UIManager.EXPLORER_PLUGIN_TOOLBARS.add(new ExportToolBar(7, explorer));
    ViewerPluginBuilder.DefaultDataModel.firePropertyChange(
      new ObservableEvent(ObservableEvent.BasicAction.NULL_SELECTION, explorer, null, null));
  }
  return explorer;
}
origin: nroduit/Weasis

public void removeSeries(MediaSeriesGroup seriesGroup) {
  if (seriesGroup != null) {
    // remove first series in UI (Viewer using this series)
    firePropertyChange(
      new ObservableEvent(ObservableEvent.BasicAction.REMOVE, AbstractFileModel.this, null, seriesGroup));
    // remove in the data model
    MediaSeriesGroup topGroup = getParent(seriesGroup, AbstractFileModel.group);
    removeHierarchyNode(topGroup, seriesGroup);
    seriesGroup.dispose();
    LOGGER.info("Remove Series/Image: {}", seriesGroup); //$NON-NLS-1$
  }
}
origin: nroduit/Weasis

  @Override
  public void addMedia(MediaElement media) {
    if (media instanceof ImageElement) {
      this.add(media);
      DataExplorerModel model = (DataExplorerModel) getTagValue(TagW.ExplorerModel);
      if (model != null) {
        model.firePropertyChange(new ObservableEvent(ObservableEvent.BasicAction.ADD, model, null,
          new SeriesEvent(SeriesEvent.Action.ADD_IMAGE, this, media)));
      }
    }
  }
};
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

  @Override
  public void addMedia(MediaElement media) {
    if (media != null) {
      this.add(media);
      DataExplorerModel model = (DataExplorerModel) this.getTagValue(TagW.ExplorerModel);
      if (model != null) {
        model.firePropertyChange(new ObservableEvent(ObservableEvent.BasicAction.ADD, model, null,
          new SeriesEvent(SeriesEvent.Action.ADD_IMAGE, this, media)));
      }
    }
  }
};
org.weasis.core.api.explorerObservableEvent<init>

Popular methods of ObservableEvent

  • getActionCommand
  • getNewValue
  • getSource

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now