public final class DefaultOverlayService extends AbstractService implements OverlayService
Overlays.| Constructor and Description |
|---|
DefaultOverlayService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOverlays(ImageDisplay display,
List<? extends Overlay> overlays)
Adds the list of
Overlays 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 channels)
Draws the outline of a given overlay in a dataset using the set of channel
information provided.
|
void |
drawOverlay(Overlay o,
ImageDisplay display,
ChannelCollection channels)
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 channels)
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 channels)
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
Overlays. |
List<Overlay> |
getOverlays(ImageDisplay display)
Gets a list of
Overlays linked to the given ImageDisplay. |
List<Overlay> |
getOverlays(ImageDisplay display,
boolean selectedOnly)
Gets a list of
Overlays 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 ImageDisplays. |
getContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic ObjectService getObjectService()
getObjectService in interface OverlayServicepublic List<Overlay> getOverlays()
OverlayServiceOverlays. This method is a shortcut that
delegates to ObjectService.getOverlays in interface OverlayServicepublic List<Overlay> getOverlays(ImageDisplay display, boolean selectedOnly)
OverlayServiceOverlays 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.getOverlays in interface OverlayServicepublic List<Overlay> getOverlays(ImageDisplay display)
OverlayServiceOverlays linked to the given ImageDisplay. A
shortcut for getOverlays(display, false).getOverlays in interface OverlayServicepublic void addOverlays(ImageDisplay display, List<? extends Overlay> overlays)
OverlayServiceOverlays to the given ImageDisplay.addOverlays in interface OverlayServicepublic void removeOverlay(ImageDisplay display, Overlay overlay)
OverlayServiceOverlay from the given ImageDisplay.removeOverlay in interface OverlayServicedisplay - the ImageDisplay from which the overlay should be
removedoverlay - the Overlay to removepublic void removeOverlay(Overlay overlay)
OverlayServiceOverlay from all ImageDisplays.removeOverlay in interface OverlayServiceoverlay - the Overlay to removepublic RealRect getSelectionBounds(ImageDisplay display)
OverlayServiceImageDisplay.getSelectionBounds in interface OverlayServicedisplay - the ImageDisplay from which the bounding box should
be computedpublic OverlaySettings getDefaultSettings()
getDefaultSettings in interface OverlayServicepublic void drawOverlay(Overlay o, ImageDisplay display, ChannelCollection channels)
OverlayServicedrawOverlay in interface OverlayServicepublic void drawOverlay(Overlay o, Dataset ds, Position position, ChannelCollection channels)
OverlayServicedrawOverlay in interface OverlayServicepublic void fillOverlay(Overlay o, ImageDisplay display, ChannelCollection channels)
OverlayServicefillOverlay in interface OverlayServicepublic void fillOverlay(Overlay o, Dataset ds, Position position, ChannelCollection channels)
OverlayServicefillOverlay in interface OverlayServicepublic ImageDisplay getFirstDisplay(Overlay o)
OverlayServicegetFirstDisplay in interface OverlayServicepublic List<ImageDisplay> getDisplays(Overlay o)
OverlayServicegetDisplays in interface OverlayServicepublic Overlay getActiveOverlay(ImageDisplay disp)
OverlayServicegetActiveOverlay in interface OverlayServicepublic OverlayInfoList getOverlayInfo()
OverlayServicegetOverlayInfo in interface OverlayServicepublic void divideCompositeOverlay(CompositeOverlay overlay)
OverlayServicedivideCompositeOverlay in interface OverlayServiceCopyright © 2014–2022 ImageJ. All rights reserved.