Package musicwriter.controller

Source Code of musicwriter.controller.ControllerMouseEvent

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package musicwriter.controller;

import musicwriter.gui.Point;

/**
*
* @author Ancmin
*/
public class ControllerMouseEvent {
    private final float x;
    private final float y;
    private final boolean controlDown;
    private final boolean shiftDown;
    private final boolean middleButton;
    private final int clickCount;
   
   
    public float getX() {
        return x;
    }

    public float getY() {
        return y;
    }


    public Point getPoint()
    {
        return new Point((int) x, (int) y);
    }

    public ControllerMouseEvent(float x, float y, boolean controlDown, boolean shiftDown, boolean middleButton, int clickCount) {
        this.x = x;
        this.y = y;
        this.controlDown = controlDown;
        this.shiftDown = shiftDown;
        this.middleButton = middleButton;
        this.clickCount = clickCount;
    }


    public boolean isControlDown() {
        return controlDown;
    }

    public boolean isMiddleButton() {
        return middleButton;
    }

    public boolean isShiftDown() {
        return shiftDown;
    }

    public int getClickCount() {
        return clickCount;
    }
   
   


   
   
}
TOP

Related Classes of musicwriter.controller.ControllerMouseEvent

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.