Package de.fuhagen.sttp.gui

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


        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

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.