public interface OverlayService extends ImageJService
Overlay
s.Modifier and Type | Method and Description |
---|---|
void |
addOverlays(ImageDisplay display,
List<? extends Overlay> overlays)
Adds the list of
Overlay s to the given ImageDisplay . |
void |
divideCompositeOverlay(CompositeOverlay overlay)
Divides a CompositeOverlay into its constituent parts and registers each
part with the appropriate displays.
|
void |
drawOverlay(Overlay o,
Dataset ds,
Position position,
ChannelCollection channelData)
Draws the outline of a given overlay in a dataset using the set of channel
information provided.
|
void |
drawOverlay(Overlay o,
ImageDisplay display,
ChannelCollection channelData)
Draws the outline of a given overlay in a display using the set of channel
information provided.
|
void |
fillOverlay(Overlay o,
Dataset ds,
Position position,
ChannelCollection channelData)
Draws and fills the outline of a given overlay in a dataset using the set
of channel information provided.
|
void |
fillOverlay(Overlay o,
ImageDisplay display,
ChannelCollection channelData)
Draws and fills the outline of a given overlay in a display using the set
of channel information provided.
|
Overlay |
getActiveOverlay(ImageDisplay disp)
Returns the active overlay associated with a display
|
OverlaySettings |
getDefaultSettings() |
List<ImageDisplay> |
getDisplays(Overlay o)
Returns all the displays associated with an overlay
|
ImageDisplay |
getFirstDisplay(Overlay o)
Returns the first display associated with an overlay
|
ObjectService |
getObjectService() |
OverlayInfoList |
getOverlayInfo()
Returns the overlay info list associated with this service.
|
List<Overlay> |
getOverlays()
Gets a list of all
Overlay s. |
List<Overlay> |
getOverlays(ImageDisplay display)
Gets a list of
Overlay s linked to the given ImageDisplay . |
List<Overlay> |
getOverlays(ImageDisplay display,
boolean selectedOnly)
Gets a list of
Overlay s linked to the given ImageDisplay . |
RealRect |
getSelectionBounds(ImageDisplay display)
Gets the bounding box for the selected overlays in the given
ImageDisplay . |
void |
removeOverlay(ImageDisplay display,
Overlay overlay)
Removes an
Overlay from the given ImageDisplay . |
void |
removeOverlay(Overlay overlay)
Removes an
Overlay from all ImageDisplay s. |
initialize, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
ObjectService getObjectService()
List<Overlay> getOverlays()
Overlay
s. This method is a shortcut that
delegates to ObjectService
.List<Overlay> getOverlays(ImageDisplay display, boolean selectedOnly)
Overlay
s linked to the given ImageDisplay
.
If selectedOnly is true then it will gather overlays from the selected
views only. Otherwise it will gather overlays from all the views.List<Overlay> getOverlays(ImageDisplay display)
Overlay
s linked to the given ImageDisplay
. A
shortcut for getOverlays(display, false)
.void addOverlays(ImageDisplay display, List<? extends Overlay> overlays)
Overlay
s to the given ImageDisplay
.void removeOverlay(ImageDisplay display, Overlay overlay)
Overlay
from the given ImageDisplay
.display
- the ImageDisplay
from which the overlay should be
removedoverlay
- the Overlay
to removevoid removeOverlay(Overlay overlay)
Overlay
from all ImageDisplay
s.overlay
- the Overlay
to removeRealRect getSelectionBounds(ImageDisplay display)
ImageDisplay
.display
- the ImageDisplay
from which the bounding box should
be computedOverlaySettings getDefaultSettings()
void drawOverlay(Overlay o, ImageDisplay display, ChannelCollection channelData)
void drawOverlay(Overlay o, Dataset ds, Position position, ChannelCollection channelData)
void fillOverlay(Overlay o, ImageDisplay display, ChannelCollection channelData)
void fillOverlay(Overlay o, Dataset ds, Position position, ChannelCollection channelData)
ImageDisplay getFirstDisplay(Overlay o)
List<ImageDisplay> getDisplays(Overlay o)
Overlay getActiveOverlay(ImageDisplay disp)
OverlayInfoList getOverlayInfo()
void divideCompositeOverlay(CompositeOverlay overlay)
Copyright © 2014–2022 ImageJ. All rights reserved.