public class PolygonMaskDrawerTool extends MaskDrawerTool
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SETTING_CLOSE |
static boolean |
DEFAULT_SETTING_FILL |
Constructor and Description |
---|
PolygonMaskDrawerTool(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 |
onMouseClick(MouseClickedEvent event) |
void |
onMouseExited(MouseExitedEvent event) |
void |
onMouseMove(MouseMovedEvent 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, onHighlightColorChanged, 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 boolean DEFAULT_SETTING_CLOSE
public static boolean DEFAULT_SETTING_FILL
public PolygonMaskDrawerTool(MaskDrawerPlugin plugin)
public void createPalettePanel(FormPanel formPanel)
ImageViewerPanelPlugin
createPalettePanel
in class ImageViewerPanelPlugin
formPanel
- the form panelpublic Cursor getToolCursor()
ImageViewerPanelCanvasTool
public void onToolActivate(ImageViewerPanelCanvas canvas)
ImageViewerPanelCanvasTool
canvas
- the canvaspublic void onToolDeactivate(ImageViewerPanelCanvas canvas)
ImageViewerPanelCanvasTool
canvas
- the canvaspublic void onMouseClick(MouseClickedEvent 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 slicepublic void onMouseMove(MouseMovedEvent event)
public void onMouseExited(MouseExitedEvent event)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.