public class ROIPickerTool extends Object implements ImageViewerPanelCanvasTool
Modifier and Type | Field and Description |
---|---|
static Stroke |
STROKE_MARQUEE |
Constructor and Description |
---|
ROIPickerTool(ROIManagerPlugin roiManagerPlugin) |
Modifier and Type | Method and Description |
---|---|
ImageViewerPanelCanvas |
getCanvas() |
Cursor |
getToolCursor()
Cursor for the tool
|
String |
getToolName()
Name of the tool
|
void |
onMouseClick(MouseClickedEvent event) |
void |
onMouseDown(MousePressedEvent event) |
void |
onMouseDrag(MouseDraggedEvent event) |
void |
onMouseExited(MouseExitedEvent event) |
void |
onMouseUp(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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToggleButton, toolAllowLeftMouseDrag, toolIsActive
public static final Stroke STROKE_MARQUEE
public ROIPickerTool(ROIManagerPlugin roiManagerPlugin)
public ImageViewerPanelCanvas getCanvas()
public Cursor getToolCursor()
ImageViewerPanelCanvasTool
getToolCursor
in interface ImageViewerPanelCanvasTool
public void onToolActivate(ImageViewerPanelCanvas canvas)
ImageViewerPanelCanvasTool
onToolActivate
in interface ImageViewerPanelCanvasTool
canvas
- the canvaspublic void onToolDeactivate(ImageViewerPanelCanvas canvas)
ImageViewerPanelCanvasTool
onToolDeactivate
in interface ImageViewerPanelCanvasTool
canvas
- the canvaspublic void onMouseClick(MouseClickedEvent event)
public void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
ImageViewerPanelCanvasTool
postprocessDraw
in interface ImageViewerPanelCanvasTool
graphics2D
- the graphicsrenderArea
- the render areasliceIndex
- the index of the slicepublic void onMouseDown(MousePressedEvent event)
public void onMouseUp(MouseReleasedEvent event)
public void onMouseExited(MouseExitedEvent event)
public void onMouseDrag(MouseDraggedEvent event)
public String getToolName()
ImageViewerPanelCanvasTool
getToolName
in interface ImageViewerPanelCanvasTool
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.