public class ThresholdJHotDrawAdapter extends AbstractJHotDrawAdapter<ThresholdOverlay,ThresholdFigure>
SwingPolygonToolDASH_LINE_STYLE, DOT_DASH_LINE_STYLE, DOT_LINE_STYLE, SOLID_LINE_STYLE| Constructor and Description |
|---|
ThresholdJHotDrawAdapter() |
| 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.
|
JHotDrawTool |
getCreationTool(ImageDisplay display) |
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(ThresholdFigure figure)
Converts a figure into an AWT Shape.
|
initDefaultSettings, mouseDown, mouseDrag, report, updateFigure, updateOverlaygetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic 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 JHotDrawTool getCreationTool(ImageDisplay display)
public Shape toShape(ThresholdFigure figure)
AbstractJHotDrawAdaptertoShape in class AbstractJHotDrawAdapter<ThresholdOverlay,ThresholdFigure>Copyright © 2014–2022 ImageJ. All rights reserved.