public boolean isSouth() { return getDeltaY() < 0; }
public MouseWheelEvent getOriginalEvent() { return (MouseWheelEvent) getMouseEvent(); }
/** * Returns the normalized delta Y of the mouse wheel. * * Typical values are 1 for North and -1 for South. * <p> * Note that the values returned by the GWT MouseWheelEvent are * inconsistent. They can still be accessed via getOriginalEvent().getDeltaY(). * * @return double */ public double getDeltaY() { return getNormalizedDeltaY(getOriginalEvent()); }
@Override public void onMouseWheel(final MouseWheelEvent event) { final NodeMouseWheelEvent nevent = new NodeMouseWheelEvent(event); if (m_mediators.handleEvent(nevent)) { event.preventDefault(); event.stopPropagation(); } else { fireEvent(nevent); } } });
@Override public HandlerRegistration addNodeMouseWheelHandler(final NodeMouseWheelHandler handler) { return addEnsureHandler(NodeMouseWheelEvent.getType(), handler); }
/** * Returns the change in the mouse wheel position along the Y-axis; positive if * the mouse wheel is moving north (toward the top of the screen) or negative * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values *are* normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public static double getNormalizedDeltaY(final MouseWheelEvent e) { return getNativeNormalizedDeltaY(e.getNativeEvent()); }
public double getNormalizedDeltaY() { return getOriginalEvent().getDeltaY(); }
@Override public void onMouseWheel(final MouseWheelEvent event) { final NodeMouseWheelEvent nevent = new NodeMouseWheelEvent(event); if (m_mediators.handleEvent(nevent)) { event.preventDefault(); event.stopPropagation(); } else { fireEvent(nevent); } } });
@Override public HandlerRegistration addNodeMouseWheelHandler(final NodeMouseWheelHandler handler) { return addEnsureHandler(NodeMouseWheelEvent.getType(), handler); }
/** * Returns the change in the mouse wheel position along the Y-axis; positive if * the mouse wheel is moving north (toward the top of the screen) or negative * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values *are* normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public static double getNormalizedDeltaY(MouseWheelEvent e) { return getNativeNormalizedDeltaY(e.getNativeEvent()); }
public double getNormalizedDeltaY() { return getOriginalEvent().getDeltaY(); }
/** * Returns the normalized delta Y of the mouse wheel. * * Typical values are 1 for North and -1 for South. * <p> * Note that the values returned by the GWT MouseWheelEvent are * inconsistent. They can still be accessed via getOriginalEvent().getDeltaY(). * * @return double */ public double getDeltaY() { return getNormalizedDeltaY(getOriginalEvent()); }
@Override public void onMouseWheel(final MouseWheelEvent event) { final NodeMouseWheelEvent nevent = new NodeMouseWheelEvent(event); if (m_mediators.handleEvent(nevent)) { event.preventDefault(); event.stopPropagation(); } else { fireEvent(nevent); } } });
@Override public HandlerRegistration addNodeMouseWheelHandler(final NodeMouseWheelHandler handler) { return addEnsureHandler(NodeMouseWheelEvent.getType(), handler); }
public boolean isNorth() { return getDeltaY() > 0; }
public MouseWheelEvent getOriginalEvent() { return (MouseWheelEvent) getMouseEvent(); }
/** * Returns the change in the mouse wheel position along the Y-axis; positive if * the mouse wheel is moving north (toward the top of the screen) or negative * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values *are* normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public static double getNormalizedDeltaY(final MouseWheelEvent e) { return getNativeNormalizedDeltaY(e.getNativeEvent()); }