public class PencilMaskDrawer2DTool extends MaskDrawer2DTool implements MouseClickedEventListener, MouseExitedEventListener, MouseMovedEventListener, MouseDraggedEventListener, MousePressedEventListener, MouseReleasedEventListener
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 |
onComponentMouseClicked(MouseClickedEvent event) |
void |
onComponentMouseDragged(MouseDraggedEvent event) |
void |
onComponentMouseExited(MouseExitedEvent event) |
void |
onComponentMouseMoved(MouseMovedEvent event) |
void |
onComponentMousePressed(MousePressedEvent event) |
void |
onComponentMouseReleased(MouseReleasedEvent event) |
void |
onHighlightColorChanged()
Triggered when the highlight color was changed
|
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
getToolCursor
in interface ImageViewerPanelCanvas2DTool
public void onToolActivate(ImageViewerPanelCanvas2D canvas)
ImageViewerPanelCanvas2DTool
onToolActivate
in interface ImageViewerPanelCanvas2DTool
canvas
- the canvaspublic void onToolDeactivate(ImageViewerPanelCanvas2D canvas)
ImageViewerPanelCanvas2DTool
onToolDeactivate
in interface ImageViewerPanelCanvas2DTool
canvas
- the canvaspublic void onComponentMouseMoved(MouseMovedEvent event)
onComponentMouseMoved
in interface MouseMovedEventListener
public void onComponentMouseClicked(MouseClickedEvent event)
onComponentMouseClicked
in interface MouseClickedEventListener
public void onComponentMouseDragged(MouseDraggedEvent event)
onComponentMouseDragged
in interface MouseDraggedEventListener
public void onComponentMousePressed(MousePressedEvent event)
onComponentMousePressed
in interface MousePressedEventListener
public void onComponentMouseReleased(MouseReleasedEvent event)
onComponentMouseReleased
in interface MouseReleasedEventListener
public void onComponentMouseExited(MouseExitedEvent event)
onComponentMouseExited
in interface MouseExitedEventListener
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.