Package net.sf.jiga.xtended.impl

Examples of net.sf.jiga.xtended.impl.Animation


     */
    public void mouseClicked(MouseEvent e) {
        if (JXAenvUtils._debug) {
            System.err.println(e);
        }
        Animation current = animations.get(record);
        if (!browser.isResourceLoaded()) {
            return;
        }
        Rectangle cursor = mouse_getCursorBounds(e);
        int animator = current.getPosition();
        /**
         * current values
         */
        List<Rectangle> collisionsListDef = browser.collisionsDef_map.get(record).get(animator);
        List<Rectangle> collisionsListAtk = browser.collisionsAtk_map.get(record).get(animator);
View Full Code Here


     */
    public void mousePressed(MouseEvent e) {
        if (JXAenvUtils._debug) {
            System.err.println(e);
        }
        Animation current = animations.get(record);
        if (!browser.isResourceLoaded()) {
            return;
        }
        Rectangle cursor = mouse_getCursorBounds(e);
        int animator = current.getPosition();
        listDef = listDef instanceof List ? listDef : browser.collisionsDef_map.get(record).get(animator);
        listAtk = listAtk instanceof List ? listAtk : browser.collisionsAtk_map.get(record).get(animator);

        if (e.isPopupTrigger()) {
            menu.pack();
View Full Code Here

        repaint();
        e.consume();
    }

    public void mouseWheelMoved(MouseWheelEvent e) {
        Animation a = animations.get(record);
        a.stop();
        int w = e.getWheelRotation();
        if (browser.currentRecordKey.get(CURRENTRECORDKEY) != record) {
            return;
        }
        if (e.isControlDown()) {
            sw_zoom.setValue(Math.max(sw_zoom.getMinimum(), Math.min(sw_zoom.getMaximum(), sw_zoom.getValue() + w)));
        } else {
            for (int i = 0; i < Math.abs(w); i++) {
                if (w > 0) {
                    a.next();
                } else {
                    a.previous();
                }
            }
        }
        e.consume();
    }
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.impl.Animation

Copyright © 2018 www.massapicom. 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.