本文整理了Java中ij.ImageJ.removeKeyListener()
方法的一些代码示例,展示了ImageJ.removeKeyListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageJ.removeKeyListener()
方法的具体详情如下:
包路径:ij.ImageJ
类名称:ImageJ
方法名:removeKeyListener
暂无
代码示例来源:origin: sc.fiji/fiji-lib
public void resetActions() {
if (actions == null)
return;
Hashtable table = Menus.getCommands();
for (Object key : table.keySet()) {
if (!table.get(key).equals(getAction(key)))
continue;
table.put(key, actions.get(key));
}
actions = null;
ij.setCursor(cursor);
ij.removeKeyListener(this);
for (Component component : ij.getComponents())
component.removeKeyListener(this);
ij.removeWindowFocusListener(this);
}
代码示例来源:origin: sc.fiji/fiji-compat
public static boolean removeRegisteredKeyListener() {
for (KeyListener listener : IJ.getInstance().getKeyListeners())
if (listener instanceof IJ_Alt_Key_Listener) {
IJ.getInstance().removeKeyListener(listener);
return true;
}
return false;
}
代码示例来源:origin: mpicbg/mpicbg
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
代码示例来源:origin: axtimwalde/mpicbg
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
代码示例来源:origin: mpicbg/mpicbg
public void keyPressed( KeyEvent e )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE || e.getKeyCode() == KeyEvent.VK_ENTER )
{
painter.interrupt();
canvas.removeKeyListener( this );
window.removeKeyListener( this );
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
if ( imp != null )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE )
{
imp.setProcessor( ipOriginal );
}
else if ( e.getKeyCode() == KeyEvent.VK_ENTER )
{
}
}
imp.updateAndDraw();
}
else if ( e.getKeyCode() == KeyEvent.VK_F1 )
showHelp();
}
}
代码示例来源:origin: mpicbg/mpicbg
public void keyPressed( KeyEvent e )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE || e.getKeyCode() == KeyEvent.VK_ENTER )
{
painter.interrupt();
canvas.removeKeyListener( this );
window.removeKeyListener( this );
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
if ( imp != null )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE )
{
imp.setProcessor( ipOriginal );
}
else if ( e.getKeyCode() == KeyEvent.VK_ENTER )
{
}
}
imp.updateAndDraw();
}
else if ( e.getKeyCode() == KeyEvent.VK_F1 )
showHelp();
}
}
代码示例来源:origin: mpicbg/mpicbg
public void keyPressed( KeyEvent e )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE || e.getKeyCode() == KeyEvent.VK_ENTER )
{
painter.interrupt();
canvas.removeKeyListener( this );
window.removeKeyListener( this );
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
if ( imp != null )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE )
{
imp.getProcessor().reset();
}
else if ( e.getKeyCode() == KeyEvent.VK_ENTER )
{
}
}
imp.updateAndDraw();
}
else if ( e.getKeyCode() == KeyEvent.VK_F1 )
{
showHelp();
}
}
代码示例来源:origin: axtimwalde/mpicbg
public void keyPressed( KeyEvent e )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE || e.getKeyCode() == KeyEvent.VK_ENTER )
{
painter.interrupt();
canvas.removeKeyListener( this );
window.removeKeyListener( this );
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
if ( imp != null )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE )
{
imp.setProcessor( ipOriginal );
}
else if ( e.getKeyCode() == KeyEvent.VK_ENTER )
{
}
}
imp.updateAndDraw();
}
else if ( e.getKeyCode() == KeyEvent.VK_F1 )
showHelp();
}
}
代码示例来源:origin: axtimwalde/mpicbg
public void keyPressed( KeyEvent e )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE || e.getKeyCode() == KeyEvent.VK_ENTER )
{
painter.interrupt();
canvas.removeKeyListener( this );
window.removeKeyListener( this );
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
if ( imp != null )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE )
{
imp.setProcessor( ipOriginal );
}
else if ( e.getKeyCode() == KeyEvent.VK_ENTER )
{
}
}
imp.updateAndDraw();
}
else if ( e.getKeyCode() == KeyEvent.VK_F1 )
showHelp();
}
}
代码示例来源:origin: axtimwalde/mpicbg
public void keyPressed( KeyEvent e )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE || e.getKeyCode() == KeyEvent.VK_ENTER )
{
painter.interrupt();
canvas.removeKeyListener( this );
window.removeKeyListener( this );
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
if ( imp != null )
{
if ( e.getKeyCode() == KeyEvent.VK_ESCAPE )
{
imp.getProcessor().reset();
}
else if ( e.getKeyCode() == KeyEvent.VK_ENTER )
{
}
}
imp.updateAndDraw();
}
else if ( e.getKeyCode() == KeyEvent.VK_F1 )
{
showHelp();
}
}
代码示例来源:origin: mpicbg/mpicbg
window.removeKeyListener( this );
window.removeMouseWheelListener( this );
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
代码示例来源:origin: axtimwalde/mpicbg
window.removeKeyListener( this );
window.removeMouseWheelListener( this );
ij.removeKeyListener( this );
canvas.removeMouseListener( this );
canvas.removeMouseMotionListener( this );
代码示例来源:origin: mpicbg/mpicbg
imp.getCanvas().removeKeyListener( this );
imp.getWindow().removeKeyListener( this );
IJ.getInstance().removeKeyListener( this );
imp.setOverlay( null );
imp.setRoi( ( Roi )null );
代码示例来源:origin: mpicbg/mpicbg_
/**
* Remove both ours and the backed up event handlers.
*/
final void clearGui()
{
for ( final KeyListener l : canvasKeyListeners )
canvas.removeKeyListener( l );
for ( final KeyListener l : windowKeyListeners )
window.removeKeyListener( l );
for ( final KeyListener l : ijKeyListeners )
ij.removeKeyListener( l );
for ( final MouseListener l : canvasMouseListeners )
canvas.removeMouseListener( l );
for ( final MouseMotionListener l : canvasMouseMotionListeners )
canvas.removeMouseMotionListener( l );
for ( final MouseWheelListener l : windowMouseWheelListeners )
window.removeMouseWheelListener( l );
for ( final AdjustmentListener l : scrollBarAdjustmentListeners )
scrollBar.removeAdjustmentListener( l );
canvas.removeKeyListener( Stack_Rotate.this );
window.removeKeyListener( Stack_Rotate.this );
ij.removeKeyListener( Stack_Rotate.this );
canvas.removeMouseListener( Stack_Rotate.this );
canvas.removeMouseMotionListener( Stack_Rotate.this );
window.removeMouseWheelListener( Stack_Rotate.this );
scrollBar.removeAdjustmentListener( Stack_Rotate.this );
}
}
代码示例来源:origin: axtimwalde/mpicbg
imp.getCanvas().removeKeyListener( this );
imp.getWindow().removeKeyListener( this );
IJ.getInstance().removeKeyListener( this );
imp.setOverlay( null );
imp.setRoi( ( Roi )null );
代码示例来源:origin: axtimwalde/mpicbg
/**
* Remove both ours and the backed up event handlers.
*/
final void clearGui()
{
for ( final KeyListener l : canvasKeyListeners )
canvas.removeKeyListener( l );
for ( final KeyListener l : windowKeyListeners )
window.removeKeyListener( l );
for ( final KeyListener l : ijKeyListeners )
ij.removeKeyListener( l );
for ( final MouseListener l : canvasMouseListeners )
canvas.removeMouseListener( l );
for ( final MouseMotionListener l : canvasMouseMotionListeners )
canvas.removeMouseMotionListener( l );
for ( final MouseWheelListener l : windowMouseWheelListeners )
window.removeMouseWheelListener( l );
for ( final AdjustmentListener l : scrollBarAdjustmentListeners )
scrollBar.removeAdjustmentListener( l );
canvas.removeKeyListener( Stack_Rotate.this );
window.removeKeyListener( Stack_Rotate.this );
ij.removeKeyListener( Stack_Rotate.this );
canvas.removeMouseListener( Stack_Rotate.this );
canvas.removeMouseMotionListener( Stack_Rotate.this );
window.removeMouseWheelListener( Stack_Rotate.this );
scrollBar.removeAdjustmentListener( Stack_Rotate.this );
}
}
内容来源于网络,如有侵权,请联系作者删除!