Examples of mouseWheelMoved()


Examples of de.fuhagen.sttp.gui.ZoomSlider.mouseWheelMoved()

        MouseWheelEvent wheelUp = new MouseWheelEvent(zs, 0, System
                .currentTimeMillis(), 0, 100, 30, 0, false,
                MouseWheelEvent.WHEEL_UNIT_SCROLL, -20, -20);

        int value = zs.getValue();
        zs.mouseWheelMoved(wheelUp);
        assertTrue("scroll up reduce zoom " + value + " > " + zs.getValue()
                + " " + wheelUp.getPreciseWheelRotation(), value > zs
                .getValue());

        value = zs.getValue();
View Full Code Here

Examples of de.fuhagen.sttp.gui.ZoomSlider.mouseWheelMoved()

        assertTrue("scroll up reduce zoom " + value + " > " + zs.getValue()
                + " " + wheelUp.getPreciseWheelRotation(), value > zs
                .getValue());

        value = zs.getValue();
        zs.mouseWheelMoved(wheelDown);
        assertTrue("scroll down increase zoom " + value + " < " + zs.getValue()
                + " " + wheelDown.getPreciseWheelRotation(), value < zs
                .getValue());
    }
View Full Code Here

Examples of de.heil_privat.commons.swing.mouse.ConfigurableMouseAdapter.mouseWheelMoved()

        toTest.mouseClicked(null);
        toTest.mousePressed(null);
        toTest.mouseReleased(null);
        toTest.mouseEntered(null);
        toTest.mouseExited(null);
        toTest.mouseWheelMoved(null);
    }

    @Test
    public void passesEventsToHandlers() {
        MouseWheelEvent evt = mock(MouseWheelEvent.class);
View Full Code Here

Examples of prefuse.controls.Control.mouseWheelMoved()

            Object[] lstnrs = m_controls.getArray();
            for (int i = 0; i < lstnrs.length; ++i) {
                Control ctrl = (Control) lstnrs[i];
                if (ctrl.isEnabled())
                    try {
                        ctrl.mouseWheelMoved(e);
                    } catch ( Exception ex ) {
                        s_logger.warning(
                            "Exception thrown by Control: " + ex + "\n" +
                            StringLib.getStackTrace(ex));
                    }
View Full Code Here

Examples of prefuse.controls.Control.mouseWheelMoved()

            Object[] lstnrs = m_controls.getArray();
            for (int i = 0; i < lstnrs.length; ++i) {
                Control ctrl = (Control) lstnrs[i];
                if (ctrl.isEnabled())
                    try {
                        ctrl.mouseWheelMoved(e);
                    } catch ( Exception ex ) {
                        s_logger.warning(
                            "Exception thrown by Control: " + ex + "\n" +
                            StringLib.getStackTrace(ex));
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.