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, waitaddToggleButton, toolAllowLeftMouseDrag, toolIsActivepublic static final Stroke STROKE_MARQUEE
public ROIPickerTool(ROIManagerPlugin roiManagerPlugin)
public ImageViewerPanelCanvas getCanvas()
public Cursor getToolCursor()
ImageViewerPanelCanvasToolgetToolCursor in interface ImageViewerPanelCanvasToolpublic void onToolActivate(ImageViewerPanelCanvas canvas)
ImageViewerPanelCanvasToolonToolActivate in interface ImageViewerPanelCanvasToolcanvas - the canvaspublic void onToolDeactivate(ImageViewerPanelCanvas canvas)
ImageViewerPanelCanvasToolonToolDeactivate in interface ImageViewerPanelCanvasToolcanvas - the canvaspublic void onMouseClick(MouseClickedEvent event)
public void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
ImageViewerPanelCanvasToolpostprocessDraw in interface ImageViewerPanelCanvasToolgraphics2D - 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()
ImageViewerPanelCanvasToolgetToolName in interface ImageViewerPanelCanvasToolCopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.