public class RoiPicker extends AbstractTool implements ActionListener, MouseListener, MouseMotionListener, MouseWheelListener, ToolWithOptions
Roi
s 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:
AbstractTool.KeyProxy, AbstractTool.KeyProxyIfNotConsumed, AbstractTool.MouseMotionProxy, AbstractTool.MouseMotionProxyIfNotConsumed, AbstractTool.MouseProxy, AbstractTool.MouseWheelProxy, AbstractTool.MouseWheelProxyIfNotConsumed, AbstractTool.ToolbarMouseAdapter
clearToolsIfNecessary, ijKeyProxy, keyProxy, mouseMotionProxy, mouseProxy, mouseWheelProxy, savedToolName, sliceListener, sliceObservers, toolActive, toolbar, toolbarMouseListener, toolID, toolToggleListener
Constructor and Description |
---|
RoiPicker() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
String |
getToolIcon()
Return the string encoding of the tool icon as it will appear in the
toolbar.
|
String |
getToolName()
Return the tool name.
|
protected void |
handleRecording() |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent arg0) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent arg0) |
void |
mouseReleased(MouseEvent e)
Functional method of the RoiPicker.
|
void |
mouseWheelMoved(MouseWheelEvent e) |
void |
run(String arg) |
static void |
select(String style,
String x1,
String y1,
String x2,
String y2,
String width,
String headLength) |
void |
showOptionDialog()
When called, this method displays the configuration panel for the concrete
implementation of this tool.
|
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
public void run(String arg)
run
in interface ij.plugin.PlugIn
run
in class AbstractTool
public String getToolName()
AbstractTool
getToolName
in class AbstractTool
public String getToolIcon()
AbstractTool
getToolIcon
in class AbstractTool
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved
in interface MouseWheelListener
public void showOptionDialog()
ToolWithOptions
showOptionDialog
in interface ToolWithOptions
public void mouseDragged(MouseEvent arg0)
mouseDragged
in interface MouseMotionListener
public void mousePressed(MouseEvent arg0)
mousePressed
in interface MouseListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
protected void handleRecording()
Copyright © 2015–2021 Fiji. All rights reserved.