Package tools
Class RoiPicker
java.lang.Object
fiji.tool.AbstractTool
tools.RoiPicker
- All Implemented Interfaces:
fiji.tool.ToolWithOptions,ij.ImageListener,ij.plugin.PlugIn,ActionListener,MouseListener,MouseMotionListener,MouseWheelListener,WindowFocusListener,EventListener
public class RoiPicker
extends fiji.tool.AbstractTool
implements ActionListener, MouseListener, MouseMotionListener, MouseWheelListener, fiji.tool.ToolWithOptions
This tool is used to select the
Rois containing a specific x, y
position (obtained by a mouse click). Any Rois in the current
RoiManager containing that point will be added to this tool's list.
The Rois of the list can be itereated by repeated clicking.
NB: Known limitations to this tool:
- When displaying a union of all matching Rois, only the first will be selected in the RoiManager.
- When a Roi is selected in the RoiManager, the list itself will not automatically update to display that Roi.
- Works best with "Show all" Rois off.
- Version:
- 1.0 - 30 Aug 2013
- Author:
- Mark Hinier
-
Nested Class Summary
Nested classes/interfaces inherited from class fiji.tool.AbstractTool
fiji.tool.AbstractTool.KeyProxy, fiji.tool.AbstractTool.KeyProxyIfNotConsumed, fiji.tool.AbstractTool.MouseMotionProxy, fiji.tool.AbstractTool.MouseMotionProxyIfNotConsumed, fiji.tool.AbstractTool.MouseProxy, fiji.tool.AbstractTool.MouseWheelProxy, fiji.tool.AbstractTool.MouseWheelProxyIfNotConsumed, fiji.tool.AbstractTool.ToolbarMouseAdapter -
Field Summary
Fields inherited from class fiji.tool.AbstractTool
clearToolsIfNecessary, ijKeyProxy, keyProxy, mouseMotionProxy, mouseProxy, mouseWheelProxy, savedToolName, sliceListener, sliceObservers, toolActive, toolbar, toolbarMouseListener, toolID, toolToggleListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidvoidvoidmouseDragged(MouseEvent arg0) voidvoidvoidvoidmousePressed(MouseEvent arg0) voidFunctional method of the RoiPicker.voidvoidstatic voidvoidMethods inherited from class fiji.tool.AbstractTool
addKeyListener, addMouseMotionListener, addMouseWheelListener, getImageCanvas, getImagePlus, getImageWindow, getOffscreenX, getOffscreenXDouble, getOffscreenY, getOffscreenYDouble, getToolID, imageClosed, imageOpened, imageUpdated, isThisTool, maybeUnregister, registerTool, registerTool, registerTool, unregisterTool, unregisterTool, unregisterTool, wasToolbarCleared, windowGainedFocus, windowLostFocus
-
Constructor Details
-
RoiPicker
public RoiPicker()
-
-
Method Details
-
run
- Specified by:
runin interfaceij.plugin.PlugIn- Overrides:
runin classfiji.tool.AbstractTool
-
getToolName
- Overrides:
getToolNamein classfiji.tool.AbstractTool
-
getToolIcon
- Overrides:
getToolIconin classfiji.tool.AbstractTool
-
mouseReleased
Functional method of the RoiPicker. Determines which Rois match the x,y coordinates of the received MouseEvent and the C,Z,T coordinates of the active image. The user can cycle through these Rois with repeated clicks.- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseWheelMoved
- Specified by:
mouseWheelMovedin interfaceMouseWheelListener
-
showOptionDialog
public void showOptionDialog()- Specified by:
showOptionDialogin interfacefiji.tool.ToolWithOptions
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
handleRecording
protected void handleRecording() -
select
-