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

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

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

origin: net.imagej/imagej-ui-swing

private void draw() {
  ChannelCollection channels = getChannels();
  List<Overlay> selected = overlayService.getOverlayInfo().selectedOverlays();
  for (Overlay o : selected) {
    ImageDisplay disp = overlayService.getFirstDisplay(o);
    overlayService.drawOverlay(o, disp, channels);
  }
}
origin: net.imagej/imagej-ui-swing

private void fill() {
  ChannelCollection channels = getChannels();
  List<Overlay> selected = overlayService.getOverlayInfo().selectedOverlays();
  for (Overlay o : selected) {
    ImageDisplay disp = overlayService.getFirstDisplay(o);
    overlayService.fillOverlay(o, disp, channels);
  }
}

net.imagej.displayOverlayServicegetFirstDisplay

Javadoc

Returns the first display associated with an overlay

Popular methods of OverlayService

  • removeOverlay
    Removes an Overlay from all ImageDisplays.
  • addOverlays
    Adds the list of Overlays to the given ImageDisplay.
  • getActiveOverlay
    Returns the active overlay associated with a display
  • 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
  • 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

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Github Copilot alternatives
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