public class ROIPicker2DTool extends Object implements ImageViewerPanelCanvas2DTool
Modifier and Type | Field and Description |
---|---|
static Stroke |
STROKE_MARQUEE |
Constructor and Description |
---|
ROIPicker2DTool(ROIManagerPlugin2D roiManagerPlugin) |
Modifier and Type | Method and Description |
---|---|
ImageViewerPanelCanvas2D |
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(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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToggleButton, toolAllowLeftMouseDrag, toolIsActive
public static final Stroke STROKE_MARQUEE
public ROIPicker2DTool(ROIManagerPlugin2D roiManagerPlugin)
public ImageViewerPanelCanvas2D getCanvas()
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 onMouseClick(MouseClickedEvent event)
public void postprocessDraw(Graphics2D graphics2D, Rectangle renderArea, ImageSliceIndex sliceIndex)
ImageViewerPanelCanvas2DTool
postprocessDraw
in interface ImageViewerPanelCanvas2DTool
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()
ImageViewerPanelCanvas2DTool
getToolName
in interface ImageViewerPanelCanvas2DTool
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.