public class JHotDrawService extends AbstractService implements ImageJService
Overlay
s and JHotDraw Figure
s.Constructor and Description |
---|
JHotDrawService() |
Modifier and Type | Method and Description |
---|---|
JHotDrawAdapter<?> |
getAdapter(Overlay overlay)
Gets the first available adapter for the given overlay.
|
JHotDrawAdapter<?> |
getAdapter(Overlay overlay,
Figure figure)
Gets the first available adapter for the given overlay.
|
JHotDrawAdapter<?> |
getAdapter(Tool tool)
Gets the adapter associated with the given tool.
|
ArrayList<JHotDrawAdapter<?>> |
getAdapters(Overlay overlay)
Gets all adapters capable of handling a given overlay.
|
ArrayList<JHotDrawAdapter<?>> |
getAdapters(Overlay overlay,
Figure figure)
Gets all adapters capable of handling a given overlay/figure combination.
|
Collection<JHotDrawAdapter<?>> |
getAllAdapters()
Gets all of the discovered adapters.
|
<F extends Figure> |
linkOverlay(F figure,
JHotDrawAdapter<F> adapter,
ImageDisplay display)
Links a new
Overlay and OverlayView , created by the given
JHotDrawAdapter , to the specified JHotDraw Figure of a
particular ImageDisplay . |
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public JHotDrawAdapter<?> getAdapter(Tool tool)
tool
- The tool for which a compatible adapter is needed.public JHotDrawAdapter<?> getAdapter(Overlay overlay)
overlay
- the overlay to adaptpublic JHotDrawAdapter<?> getAdapter(Overlay overlay, Figure figure)
overlay
- the overlay to adaptfigure
- the figure to be associated with the overlaypublic ArrayList<JHotDrawAdapter<?>> getAdapters(Overlay overlay)
overlay
- the overlay to adaptpublic ArrayList<JHotDrawAdapter<?>> getAdapters(Overlay overlay, Figure figure)
overlay
- the overlay to adaptfigure
- the figure to be associated with the overlaypublic Collection<JHotDrawAdapter<?>> getAllAdapters()
public <F extends Figure> void linkOverlay(F figure, JHotDrawAdapter<F> adapter, ImageDisplay display)
Overlay
and OverlayView
, created by the given
JHotDrawAdapter
, to the specified JHotDraw Figure
of a
particular ImageDisplay
.Copyright © 2014–2022 ImageJ. All rights reserved.