public class RectangleMaskDrawer2DTool extends MaskDrawer2DTool
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SETTING_FILL |
static boolean |
DEFAULT_SETTING_SQUARE |
static boolean |
DEFAULT_SETTING_START_FROM_CENTER |
Constructor and Description |
---|
RectangleMaskDrawer2DTool(MaskDrawerPlugin2D plugin) |
Modifier and Type | Method and Description |
---|---|
static Rectangle |
getDrawnArea(Point p0,
Point p1,
boolean startFromCenter,
boolean square) |
Cursor |
getToolCursor()
Cursor for the tool
|
void |
initializeSettingsPanel(FormPanel formPanel)
Called when the form panel should be recreated
|
void |
onMouseClick(MouseClickedEvent event) |
void |
onMouseExited(MouseExitedEvent event) |
void |
onMouseMove(MouseMovedEvent event) |
void |
onToolActivate(ImageViewerPanelCanvas2D canvas)
Executed on activation of this tool
|
void |
onToolDeactivate(ImageViewerPanelCanvas2D canvas)
Executed on deactivation of this tool
|
void |
postprocessDraw(Graphics2D graphics2D,
Rectangle renderArea,
ImageSliceIndex sliceIndex)
Called after the image has been drawn after the image has been drawn
|
getCategory, getCategoryIcon, getDescription, getIcon, getMaskDrawerPlugin, getName, getToolName, onHighlightColorChanged, postMaskChangedEvent, showGuides, toolIsActive
beforeDraw, draw, getCurrentSlice, getCurrentSlicePosition, getViewerPanel2D, onSliceChanged, postprocessDrawForExport, uploadSliceToCanvas
getCurrentImage, getCurrentImagePlus, getDataSource, getViewerPanel, getWorkbench, onImageChanged, onOverlayAdded, onOverlayRemoved, onOverlaysCleared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToggleButton, toolAllowLeftMouseDrag, toolIsActive
dispose
public static boolean DEFAULT_SETTING_START_FROM_CENTER
public static boolean DEFAULT_SETTING_SQUARE
public static boolean DEFAULT_SETTING_FILL
public RectangleMaskDrawer2DTool(MaskDrawerPlugin2D plugin)
public static Rectangle getDrawnArea(Point p0, Point p1, boolean startFromCenter, boolean square)
public void initializeSettingsPanel(FormPanel formPanel)
JIPipeImageViewerPlugin
initializeSettingsPanel
in class JIPipeImageViewerPlugin
formPanel
- the form panelpublic Cursor getToolCursor()
ImageViewerPanelCanvas2DTool
public void onToolActivate(ImageViewerPanelCanvas2D canvas)
ImageViewerPanelCanvas2DTool
canvas
- the canvaspublic void onToolDeactivate(ImageViewerPanelCanvas2D canvas)
ImageViewerPanelCanvas2DTool
canvas
- the canvaspublic void onMouseClick(MouseClickedEvent event)
public void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
JIPipeImageViewerPlugin2D
postprocessDraw
in interface ImageViewerPanelCanvas2DTool
postprocessDraw
in class JIPipeImageViewerPlugin2D
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic void onMouseMove(MouseMovedEvent event)
public void onMouseExited(MouseExitedEvent event)
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.