All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webswing.model.c2s.MouseEventMsgIn Maven / Gradle / Ivy

There is a newer version: 20.2.4
Show newest version
package org.webswing.model.c2s;

import org.webswing.model.MsgIn;
import org.webswing.model.UserInputMsgIn;

public class MouseEventMsgIn implements MsgIn, UserInputMsgIn {
	private static final long serialVersionUID = 8411036255812103478L;

	public enum MouseEventType {
		mousemove,
		mousedown,
		mouseup,
		mousewheel,
		dblclick;
	}

	private int x;
	private int y;
	private MouseEventType type;
	private int wheelDelta;
	private int button;
	private int buttons;
	private int timeMilis;
	private boolean ctrl;
	private boolean alt;
	private boolean shift;
	private boolean meta;
	private String winId;

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public MouseEventType getType() {
		return type;
	}

	public void setType(MouseEventType type) {
		this.type = type;
	}

	public int getWheelDelta() {
		return wheelDelta;
	}

	public void setWheelDelta(int wheelDelta) {
		this.wheelDelta = wheelDelta;
	}

	public int getButton() {
		return button;
	}

	public void setButton(int button) {
		this.button = button;
	}

	public boolean isCtrl() {
		return ctrl;
	}

	public void setCtrl(boolean ctrl) {
		this.ctrl = ctrl;
	}

	public boolean isAlt() {
		return alt;
	}

	public void setAlt(boolean alt) {
		this.alt = alt;
	}

	public boolean isShift() {
		return shift;
	}

	public void setShift(boolean shift) {
		this.shift = shift;
	}

	public boolean isMeta() {
		return meta;
	}

	public void setMeta(boolean meta) {
		this.meta = meta;
	}

	public int getButtons() {
		return buttons;
	}

	public void setButtons(int buttons) {
		this.buttons = buttons;
	}

	public int getTimeMilis() {
		return timeMilis;
	}

	public void setTimeMilis(int timeMilis) {
		this.timeMilis = timeMilis;
	}

	public String getWinId() {
		return winId;
	}

	public void setWinId(String winId) {
		this.winId = winId;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy