Tabnine Logo
OverlayService.getActiveOverlay
Code IndexAdd Tabnine to your IDE (free)

How to use
getActiveOverlay
method
in
net.imagej.display.OverlayService

Best Java code snippets using net.imagej.display.OverlayService.getActiveOverlay (Showing top 2 results out of 315)

origin: net.imagej/imagej-common

@Override
public Overlay getValue() {
  if (imageDisplayService == null) return null;
  final ImageDisplay display = imageDisplayService.getActiveImageDisplay();
  return display == null ? null : overlayService.getActiveOverlay(display);
}
origin: net.imagej/imagej-legacy

/**
 * Updates the given {@link ImagePlus}'s Roi and Overlay to match the modern
 * ImageJ {@link Overlay}s being visualized in the given {@link ImageDisplay}.
 */
@Override
public void
  updateLegacyImage(final ImageDisplay display, final ImagePlus imp)
{
  final List<Overlay> overlays = overlayService.getOverlays(display);
  setOverlays(overlays, overlayService.getActiveOverlay(display), imp);
  setLegacyThreshold(display, imp);
}
net.imagej.displayOverlayServicegetActiveOverlay

Javadoc

Returns the active overlay associated with a display

Popular methods of OverlayService

  • removeOverlay
    Removes an Overlay from all ImageDisplays.
  • addOverlays
    Adds the list of Overlays to the given ImageDisplay.
  • getDefaultSettings
  • getOverlays
    Gets a list of Overlays linked to the given ImageDisplay. If selectedOnly is true then it will gathe
  • divideCompositeOverlay
    Divides a CompositeOverlay into its constituent parts and registers each part with the appropriate d
  • drawOverlay
    Draws the outline of a given overlay in a display using the set of channel information provided.
  • fillOverlay
    Draws and fills the outline of a given overlay in a display using the set of channel information pro
  • getFirstDisplay
    Returns the first display associated with an overlay
  • getOverlayInfo
    Returns the overlay info list associated with this service. There is one list per ImageJ context. It
  • getSelectionBounds
    Gets the bounding box for the selected overlays in the given ImageDisplay.

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Vim plugins
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