public class PencilMaskDrawer2DTool extends MaskDrawer2DTool
Modifier and Type | Class and Description |
---|---|
static class |
PencilMaskDrawer2DTool.PencilShape |
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SETTING_PENCIL_LINK_Y |
static int |
DEFAULT_SETTING_PENCIL_SIZE_X |
static int |
DEFAULT_SETTING_PENCIL_SIZE_Y |
Constructor and Description |
---|
PencilMaskDrawer2DTool(MaskDrawerPlugin2D plugin) |
Modifier and Type | Method and Description |
---|---|
Cursor |
getToolCursor()
Cursor for the tool
|
void |
initializeSettingsPanel(FormPanel formPanel)
Called when the form panel should be recreated
|
void |
onHighlightColorChanged()
Triggered when the highlight color was changed
|
void |
onMouseClick(MouseClickedEvent event) |
void |
onMouseDrag(MouseDraggedEvent event) |
void |
onMouseExited(MouseExitedEvent event) |
void |
onMouseMove(MouseMovedEvent event) |
void |
onMousePressed(MousePressedEvent event) |
void |
onMouseReleased(MouseReleasedEvent 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, 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 int DEFAULT_SETTING_PENCIL_SIZE_X
public static int DEFAULT_SETTING_PENCIL_SIZE_Y
public static boolean DEFAULT_SETTING_PENCIL_LINK_Y
public PencilMaskDrawer2DTool(MaskDrawerPlugin2D plugin)
public void initializeSettingsPanel(FormPanel formPanel)
JIPipeImageViewerPlugin
initializeSettingsPanel
in class JIPipeImageViewerPlugin
formPanel
- the form panelpublic void onHighlightColorChanged()
MaskDrawer2DTool
onHighlightColorChanged
in class MaskDrawer2DTool
public Cursor getToolCursor()
ImageViewerPanelCanvas2DTool
public void onToolActivate(ImageViewerPanelCanvas2D canvas)
ImageViewerPanelCanvas2DTool
canvas
- the canvaspublic void onToolDeactivate(ImageViewerPanelCanvas2D canvas)
ImageViewerPanelCanvas2DTool
canvas
- the canvaspublic void onMouseMove(MouseMovedEvent event)
public void onMouseClick(MouseClickedEvent event)
public void onMouseDrag(MouseDraggedEvent event)
public void onMousePressed(MousePressedEvent event)
public void onMouseReleased(MouseReleasedEvent event)
public void onMouseExited(MouseExitedEvent 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 sliceCopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.