X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgui%2Fhumaninput%2FMouseInteractionController.java;h=d5f1f0868885d6a0b364f71feed1385de566b6a7;hb=ff13a51ec53b3d2ee1c9309152ed2b40366218b9;hp=36913ecc193c36afaebfde3133a9d0fe65758b85;hpb=6213716671ccab6b7256de41838e1f5401ce173c;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/MouseInteractionController.java b/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/MouseInteractionController.java index 36913ec..d5f1f08 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/MouseInteractionController.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/MouseInteractionController.java @@ -1,29 +1,30 @@ /* - * Sixth - System for data storage, computation, exploration and interaction. - * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 3 of the GNU Lesser General Public License - * or later as published by the Free Software Foundation. + * Sixth 3D engine. Author: Svjatoslav Agejenko. + * This project is released under Creative Commons Zero (CC0) license. */ - package eu.svjatoslav.sixth.e3d.gui.humaninput; +/** + * Interface that allows to handle mouse events. + */ public interface MouseInteractionController { /** - * Called when mouse is clicked on component + * Called when mouse is clicked on component. + * @return true if view update is needed as a consequence of this mouse click. */ - void mouseClicked(); + boolean mouseClicked(int button); /** * Called when mouse gets over given component. + * @return true if view update is needed as a consequence of this mouse enter. */ - void mouseEntered(); + boolean mouseEntered(); /** * Called when mouse leaves screen area occupied by component. + * @return true if view update is needed as a consequence of this mouse exit. */ - void mouseExited(); + boolean mouseExited(); }