public class SpotEditTool extends AbstractTool implements MouseMotionListener, MouseListener, KeyListener, ToolWithOptions
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
Modifier and Type | Method and Description |
---|---|
ij.ImagePlus |
getImagePlus(ComponentEvent e)
Overridden so that we can keep track of the last ImagePlus actions are
taken on.
|
static SpotEditTool |
getInstance()
Return the singleton instance for this tool.
|
String |
getToolIcon()
Return the string encoding of the tool icon as it will appear in the
toolbar.
|
String |
getToolName()
Return the tool name.
|
static boolean |
isLaunched()
Return true if the tool is currently present in ImageJ toolbar.
|
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
register(ij.ImagePlus lImp,
HyperStackDisplayer displayer)
Register the given
HyperStackDisplayer . |
void |
showOptionDialog()
When called, this method displays the configuration panel for the concrete
implementation of this tool.
|
addKeyListener, addMouseMotionListener, addMouseWheelListener, getImageCanvas, getImageWindow, getOffscreenX, getOffscreenXDouble, getOffscreenY, getOffscreenYDouble, getToolID, imageClosed, imageOpened, imageUpdated, isThisTool, maybeUnregister, registerTool, registerTool, registerTool, run, unregisterTool, unregisterTool, unregisterTool, wasToolbarCleared, windowGainedFocus, windowLostFocus
public static SpotEditTool getInstance()
public static boolean isLaunched()
public String getToolName()
AbstractTool
getToolName
in class AbstractTool
public String getToolIcon()
AbstractTool
getToolIcon
in class AbstractTool
public ij.ImagePlus getImagePlus(ComponentEvent e)
getImagePlus
in class AbstractTool
public void register(ij.ImagePlus lImp, HyperStackDisplayer displayer)
HyperStackDisplayer
. If this method id not
called, the tool will not respond.public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void showOptionDialog()
ToolWithOptions
showOptionDialog
in interface ToolWithOptions
Copyright © 2015–2021 Fiji. All rights reserved.