public class PencilMaskDrawerTool extends MaskDrawerTool
Modifier and Type | Class and Description |
---|---|
static class |
PencilMaskDrawerTool.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 |
---|
PencilMaskDrawerTool(MaskDrawerPlugin plugin) |
Modifier and Type | Method and Description |
---|---|
void |
createPalettePanel(FormPanel formPanel)
Called when the form panel should be recreated
|
Cursor |
getToolCursor()
Cursor for the tool
|
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(ImageViewerPanelCanvas canvas)
Executed on activation of this tool
|
void |
onToolDeactivate(ImageViewerPanelCanvas 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, getCurrentImage, getCurrentSlice, getCurrentSlicePosition, getViewerPanel, getWorkbench, onImageChanged, onSliceChanged, postprocessDrawForExport, uploadSliceToCanvas
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToggleButton, toolAllowLeftMouseDrag, toolIsActive
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 PencilMaskDrawerTool(MaskDrawerPlugin plugin)
public void createPalettePanel(FormPanel formPanel)
ImageViewerPanelPlugin
createPalettePanel
in class ImageViewerPanelPlugin
formPanel
- the form panelpublic void onHighlightColorChanged()
MaskDrawerTool
onHighlightColorChanged
in class MaskDrawerTool
public Cursor getToolCursor()
ImageViewerPanelCanvasTool
public void onToolActivate(ImageViewerPanelCanvas canvas)
ImageViewerPanelCanvasTool
canvas
- the canvaspublic void onToolDeactivate(ImageViewerPanelCanvas canvas)
ImageViewerPanelCanvasTool
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)
ImageViewerPanelPlugin
postprocessDraw
in interface ImageViewerPanelCanvasTool
postprocessDraw
in class ImageViewerPanelPlugin
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the sliceCopyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.