public abstract class AbstractJHotDrawAdapter<O extends Overlay,F extends Figure> extends AbstractRichPlugin implements JHotDrawAdapter<F>
JHotDrawAdapter
interface.| Modifier and Type | Field and Description |
|---|---|
protected static double[] |
DASH_LINE_STYLE |
protected static double[] |
DOT_DASH_LINE_STYLE |
protected static double[] |
DOT_LINE_STYLE |
protected static double[] |
SOLID_LINE_STYLE |
| Constructor and Description |
|---|
AbstractJHotDrawAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initDefaultSettings(F figure) |
void |
mouseDown(Display<?> d,
int x,
int y) |
void |
mouseDrag(Display<?> d,
int x,
int y) |
void |
report(RealCoords p1,
RealCoords p2) |
abstract Shape |
toShape(F figure)
Converts a figure into an AWT Shape.
|
void |
updateFigure(OverlayView view,
F figure)
Update the appearance of the figure to match the overlay
|
void |
updateOverlay(F figure,
OverlayView view)
Update the overlay to match the appearance of the figure
|
getInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateDefaultFigure, createNewOverlay, getCreationTool, supports, supportsgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionprotected static final double[] SOLID_LINE_STYLE
protected static final double[] DASH_LINE_STYLE
protected static final double[] DOT_LINE_STYLE
protected static final double[] DOT_DASH_LINE_STYLE
public void updateFigure(OverlayView view, F figure)
JHotDrawAdapterupdateFigure in interface JHotDrawAdapter<F extends Figure>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(F figure, OverlayView view)
JHotDrawAdapterupdateOverlay in interface JHotDrawAdapter<F extends Figure>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 void mouseDown(Display<?> d, int x, int y)
mouseDown in interface JHotDrawAdapter<F extends Figure>public void mouseDrag(Display<?> d, int x, int y)
mouseDrag in interface JHotDrawAdapter<F extends Figure>public void report(RealCoords p1, RealCoords p2)
report in interface JHotDrawAdapter<F extends Figure>protected void initDefaultSettings(F figure)
Copyright © 2014–2022 ImageJ. All rights reserved.