java.awt.event.MouseListener.mouseReleased()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(145)

本文整理了Java中java.awt.event.MouseListener.mouseReleased()方法的一些代码示例,展示了MouseListener.mouseReleased()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MouseListener.mouseReleased()方法的具体详情如下:
包路径:java.awt.event.MouseListener
类名称:MouseListener
方法名:mouseReleased

MouseListener.mouseReleased介绍

[英]Invoked when a mouse button has been released on a component.
[中]在组件上释放鼠标按钮时调用。

代码示例

代码示例来源:origin: com.jidesoft/jide-oss

public void mouseReleased(MouseEvent e) {
  if (_listener != null) {
    _listener.mouseReleased(e);
  }
}

代码示例来源:origin: bcdev/beam

public void mouseReleased(MouseEvent e) {
//            _releasedEvent = e;
//            startReleasedTimer();
      if (_listener != null) {
        _listener.mouseReleased(e);
      }
    }

代码示例来源:origin: girtel/Net2Plan

@Override
public void mouseReleased(MouseEvent e) {
  if (plugin instanceof MouseListener)
    ((MouseListener) plugin).mouseReleased(e);
}

代码示例来源:origin: Multibit-Legacy/multibit-hd

@Override
public void mouseReleased(MouseEvent e) {
 mouseDelegate.mouseReleased(e);
}

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16

@Override
public void mouseReleased(MouseEvent me) { delegate.mouseReleased(me); }
@Override

代码示例来源:origin: net.sf.squirrel-sql.plugins/graph

@Override
public void mouseReleased(MouseEvent e)
{
  MouseEvent te = transformMouseEvent(e);
  MouseListener[] mouseListenersBuf = _mouseListeners.toArray(new MouseListener[_mouseListeners.size()]);
  for (MouseListener mouseListener : mouseListenersBuf)
  {
   mouseListener.mouseReleased(te);
  }
}

代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-misc-swing

@Override
public void mouseReleased(MouseEvent e) {
  if (!isLock()) {
    l.mouseReleased(e);
  }
}

代码示例来源:origin: sc.fiji/fiji-lib

@Override
public final void mouseReleased(MouseEvent e) {
  if (isThisTool())
    listener.mouseReleased(e);
}

代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

public void mouseReleased(MouseEvent e)
{
  e.setSource(AbstractInteractionPlugin.this);
  if (listeners != null)
    for (Iterator it = listeners.iterator(); it.hasNext(); )
      ((MouseListener) it.next()).mouseReleased(e);
}

代码示例来源:origin: jzy3d/jzy3d-api

@Override
public void mouseReleased(com.jogamp.newt.event.MouseEvent me) {
  if (mouseListener != null) {
    mouseListener.mouseReleased(convertEvent(me, MouseEvent.MOUSE_RELEASED));
  }
}

代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf

public void mouseReleased(MouseEvent e) {
  for (MouseListener listener : eventListenerList.getListeners(MouseListener.class))
    listener.mouseReleased(e);
}

代码示例来源:origin: sdedit/sdedit

public void mouseReleased(MouseEvent e) {
  for (MouseListener ml : mouseListeners) {
    ml.mouseReleased(translate(e));
  }
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@Override
public void mouseReleased(MouseEvent e) {
  MouseListener[] mls = getMouseListeners();
  if (mls != null && e.getSource() instanceof Component) {
    e = SwingUtilities.convertMouseEvent((Component) e.getSource(), e, ModelComponentDecorator.this);
    for (MouseListener ml : mls) {
      ml.mouseReleased(e);
    }
  }
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@Override
public void mouseReleased(MouseEvent e) {
  if (e.getSource() instanceof Component) {
    e = SwingUtilities.convertMouseEvent((Component) e.getSource(), e, ModelGrid.this);
    for (MouseListener l : ModelGrid.this.getMouseListeners()) {
      l.mouseReleased(e);
    }
  }
}

代码示例来源:origin: com.googlecode.vfsjfilechooser2/vfsjfilechooser2

public void mouseReleased(MouseEvent evt)
{
  if (evt.getSource() instanceof JList)
  {
    // Forward event to Basic
    if (getDoubleClickListener() != null)
    {
      getDoubleClickListener().mouseReleased(evt);
    }
  }
}

代码示例来源:origin: net.sf.jung/jung-visualization

public void mouseReleased(MouseEvent e) {
  checkMouseListeners();
  for(int i=0; i<mouseListeners.length; i++) {
    mouseListeners[i].mouseReleased(e);
    if(e.isConsumed()) break;
  }
}

代码示例来源:origin: jrtom/jung

public void mouseReleased(MouseEvent e) {
 checkMouseListeners();
 for (int i = 0; i < mouseListeners.length; i++) {
  mouseListeners[i].mouseReleased(e);
  if (e.isConsumed()) {
   break;
  }
 }
}

代码示例来源:origin: org.japura/japura-gui

@Override
public void mouseReleased(MouseEvent e) {
 if (isEnabled()) {
  if (mouseHandler != null) {
   e.setSource(component);
   mouseHandler.mouseReleased(e);
  }
 }
}

代码示例来源:origin: com.jtattoo/JTattoo

public void mouseReleased(MouseEvent e) {
  if (scrollableTabLayoutEnabled()) {
    MouseListener[] ml = tabPane.getMouseListeners();
    for (int i = 0; i < ml.length; i++) {
      ml[i].mouseReleased(e);
    }
  }
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public void mouseReleased(MouseEvent e) {
  if (panel.getMouseListeners() != null && panel.getMouseListeners().length != 0) {
    MouseEvent e2 = new MouseEvent(panel, e.getID(), e.getWhen(), e.getModifiers(), e.getX(), e.getY(),
        e.getXOnScreen(), e.getYOnScreen(), e.getClickCount(), e.isPopupTrigger(), e.getButton());
    for (MouseListener m : panel.getMouseListeners()) {
      m.mouseReleased(e2);
    }
  }
}

相关文章