本文整理了Java中java.awt.event.MouseListener.mouseEntered()
方法的一些代码示例,展示了MouseListener.mouseEntered()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MouseListener.mouseEntered()
方法的具体详情如下:
包路径:java.awt.event.MouseListener
类名称:MouseListener
方法名:mouseEntered
[英]Invoked when the mouse enters a component.
[中]当鼠标进入组件时调用。
代码示例来源:origin: com.jidesoft/jide-oss
public void mouseEntered(MouseEvent e) {
if (_listener != null) {
_listener.mouseEntered(e);
}
}
代码示例来源:origin: bcdev/beam
public void mouseEntered(MouseEvent e) {
if (_listener != null) {
_listener.mouseEntered(e);
}
}
代码示例来源:origin: girtel/Net2Plan
@Override
public void mouseEntered(MouseEvent e) {
if (plugin instanceof MouseListener)
((MouseListener) plugin).mouseEntered(e);
}
代码示例来源:origin: org.japura/japura-gui
@Override
public void mouseEntered(MouseEvent e) {
mouseIn = true;
originalMouseListener.mouseEntered(e);
}
代码示例来源:origin: net.sf.squirrel-sql.plugins/graph
@Override
public void mouseEntered(MouseEvent e)
{
MouseEvent te = transformMouseEvent(e);
MouseListener[] mouseListenersBuf = _mouseListeners.toArray(new MouseListener[_mouseListeners.size()]);
for (MouseListener mouseListener : mouseListenersBuf)
{
mouseListener.mouseEntered(te);
}
}
代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport
public void mouseEntered(MouseEvent e)
{
e.setSource(AbstractInteractionPlugin.this);
if (listeners != null)
for (Iterator it = listeners.iterator(); it.hasNext(); )
((MouseListener) it.next()).mouseEntered(e);
}
代码示例来源:origin: sdedit/sdedit
public void mouseEntered(MouseEvent e) {
for (MouseListener ml : mouseListeners) {
ml.mouseEntered(translate(e));
}
}
代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-misc-swing
@Override
public void mouseEntered(MouseEvent e) {
if (!isLock()) {
l.mouseEntered(e);
}
}
代码示例来源:origin: jzy3d/jzy3d-api
@Override
public void mouseEntered(com.jogamp.newt.event.MouseEvent me) {
if (mouseListener != null) {
mouseListener.mouseEntered(convertEvent(me, MouseEvent.MOUSE_ENTERED));
}
}
代码示例来源:origin: gurkenlabs/litiengine
@Override
public void mouseEntered(final MouseEvent e) {
if (!this.grabMouse) {
this.lastLocation = e.getPoint();
this.location = e.getPoint();
} else {
this.setLocation(e);
}
final MouseEvent wrappedEvent = this.createEvent(e);
this.mouseListeners.forEach(listener -> listener.mouseEntered(wrappedEvent));
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@Override
public void mouseEntered(MouseEvent e) {
if (e.getSource() instanceof Component) {
e = SwingUtilities.convertMouseEvent((Component) e.getSource(), e, ModelGrid.this);
for (MouseListener l : ModelGrid.this.getMouseListeners()) {
l.mouseEntered(e);
}
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@Override
public void mouseEntered(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.mouseEntered(e);
}
}
}
代码示例来源:origin: net.sf.jung/jung-visualization
public void mouseEntered(MouseEvent e) {
checkMouseListeners();
for(int i=0; i<mouseListeners.length; i++) {
mouseListeners[i].mouseEntered(e);
if(e.isConsumed()) break;
}
}
代码示例来源:origin: sc.fiji/fiji-lib
@Override
public final void mouseEntered(MouseEvent e) {
if (maybeUnregister())
return;
if (isThisTool())
listener.mouseEntered(e);
}
代码示例来源:origin: com.jtattoo/JTattoo
public void mouseEntered(MouseEvent e) {
if (scrollableTabLayoutEnabled()) {
MouseListener[] ml = tabPane.getMouseListeners();
for (int i = 0; i < ml.length; i++) {
ml[i].mouseEntered(e);
}
}
}
代码示例来源:origin: jrtom/jung
public void mouseEntered(MouseEvent e) {
checkMouseListeners();
for (int i = 0; i < mouseListeners.length; i++) {
mouseListeners[i].mouseEntered(e);
if (e.isConsumed()) {
break;
}
}
}
代码示例来源:origin: com.eas.platypus/platypus-js-scalable-widget
@Override
public void mouseEntered(MouseEvent e) {
prevMouseXY = e.getPoint();
Component lc = findComponentAt(eventsTarget, e.getPoint());
if (lc != null) {
Point lpt = convertPoint(e.getPoint(), lc);
MouseListener[] mlisteners = lc.getMouseListeners();
if (mlisteners != null) {
for (int i = 0; i < mlisteners.length; i++) {
mlisteners[i].mouseEntered(cloneMouseEvent(e, lc, e.getID(), lpt));
}
}
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public void mouseEntered(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.mouseEntered(e2);
}
}
}
代码示例来源:origin: com.googlecode.blaisemath/blaise-graphics
private void mouseEnter(Graphic mouseGraphic, GMouseEvent event) {
if (mouseGraphic != null) {
event.setGraphicSource(mouseGraphic);
for (MouseListener l : mouseGraphic.getMouseListeners()) {
l.mouseEntered(event);
if (event.isConsumed()) {
return;
}
}
}
}
代码示例来源:origin: org.japura/japura-gui
@Override
public void mouseEntered(MouseEvent e) {
if (isEnabled()) {
e.setSource(component);
component.dispatchEvent(e);
if (mouseHandler != null) {
mouseHandler.mouseEntered(e);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!