public class EllipseJHotDrawAdapter extends AbstractJHotDrawAdapter<EllipseOverlay,EllipseFigure>
SwingEllipseToolDASH_LINE_STYLE, DOT_DASH_LINE_STYLE, DOT_LINE_STYLE, SOLID_LINE_STYLE| Constructor and Description |
|---|
EllipseJHotDrawAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Figure |
createDefaultFigure()
Creates a default figure of the type handled by this adapter.
|
Overlay |
createNewOverlay()
Creates a new overlay.
|
protected static EllipseFigure |
downcastFigure(Figure figure) |
protected static EllipseOverlay |
downcastOverlay(Overlay roi) |
JHotDrawTool |
getCreationTool(ImageDisplay display) |
void |
report(RealCoords p1,
RealCoords p2) |
boolean |
supports(Overlay overlay,
Figure figure)
Determines whether the adapter can handle a particular overlay, or overlay
/ figure combination.
|
boolean |
supports(Tool tool)
Determines whether the adapter is designed to work with the given tool.
|
Shape |
toShape(EllipseFigure figure)
Converts a figure into an AWT Shape.
|
void |
updateFigure(OverlayView view,
EllipseFigure figure)
Update the appearance of the figure to match the overlay
|
void |
updateOverlay(EllipseFigure figure,
OverlayView view)
Update the overlay to match the appearance of the figure
|
initDefaultSettings, mouseDown, mouseDraggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionprotected static EllipseOverlay downcastOverlay(Overlay roi)
protected static EllipseFigure downcastFigure(Figure figure)
public boolean supports(Tool tool)
JHotDrawAdaptertool - The tool in question.public boolean supports(Overlay overlay, Figure figure)
JHotDrawAdapteroverlay - - an overlay that might be editablefigure - - a figure that will be either updated by the overlay or will
update the overlay. The figure can be null: this indicates that
the adapter is capable of creating the figure associated with the
overlay/public Overlay createNewOverlay()
JHotDrawAdapterpublic Figure createDefaultFigure()
JHotDrawAdapterpublic void updateFigure(OverlayView view, EllipseFigure figure)
JHotDrawAdapterupdateFigure in interface JHotDrawAdapter<EllipseFigure>updateFigure in class AbstractJHotDrawAdapter<EllipseOverlay,EllipseFigure>view - view of the overlay to be represented by the figurefigure - the figure that is to be made to look like the overlaypublic void updateOverlay(EllipseFigure figure, OverlayView view)
JHotDrawAdapterupdateOverlay in interface JHotDrawAdapter<EllipseFigure>updateOverlay in class AbstractJHotDrawAdapter<EllipseOverlay,EllipseFigure>figure - the figure that holds the current correct appearanceview - view of the overlay that needs to be changed to bring it
in-sync with the figure.public JHotDrawTool getCreationTool(ImageDisplay display)
public void report(RealCoords p1, RealCoords p2)
report in interface JHotDrawAdapter<EllipseFigure>report in class AbstractJHotDrawAdapter<EllipseOverlay,EllipseFigure>public Shape toShape(EllipseFigure figure)
AbstractJHotDrawAdaptertoShape in class AbstractJHotDrawAdapter<EllipseOverlay,EllipseFigure>Copyright © 2014–2022 ImageJ. All rights reserved.