public class OverlayFigureView extends AbstractContextual implements FigureView
OverlayView
to a JHotDraw
Figure
.Constructor and Description |
---|
OverlayFigureView(SwingImageDisplayViewer displayViewer,
OverlayView overlayView)
Constructor to use to discover the figure to use for an overlay
|
OverlayFigureView(SwingImageDisplayViewer displayViewer,
OverlayView overlayView,
Figure figure)
Constructor to use if the figure already exists, for instance if it was
created using the CreationTool
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Removes the figure from the scene.
|
DataView |
getDataView()
Gets the linked ImageJ data view.
|
Figure |
getFigure()
Gets the linked JHotDraw figure.
|
void |
update()
Updates the figure to match the linked data view.
|
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
public OverlayFigureView(SwingImageDisplayViewer displayViewer, OverlayView overlayView)
displayViewer
- - hook to this display vieweroverlayView
- - represent this overlaypublic OverlayFigureView(SwingImageDisplayViewer displayViewer, OverlayView overlayView, Figure figure)
displayViewer
- - hook to this display vieweroverlayView
- - represent this overlayfigure
- - draw using this figurepublic void update()
FigureView
update
in interface FigureView
public Figure getFigure()
FigureView
getFigure
in interface FigureView
public void dispose()
FigureView
dispose
in interface FigureView
public DataView getDataView()
FigureView
getDataView
in interface FigureView
Copyright © 2014–2022 ImageJ. All rights reserved.