This project is to show how to use mobile gestures in a GWT APP. I made a Touch Helper class to encapsulate the functionality is takes to translate gesture primitive actions into higher level ones. It currently supports PAN, ZOOM and DOUBLE TAP.
If you are interested in how to add overlays to the canvas look at my project ElectronicBattleMat. File BattleMatCanvas.java shows how I used overlays on the canvas.
This project is based on Google Web Toolkit. This allows the application to be written in Java and then compiled to javascript.
To build with maven just set console default to main folder and type.
mvn clean package
This project is also an eclipse project. I found it easier to develop and debug using a standard eclipse project instead of a Maven one. To build it using eclipse you will obviously need to setup a few things first.
- Install Java JDK. I found JDK 1.8 works best. Eclipse and Jetty seem to have issues with newer versions. You can get the JDK @ Oracle Java JDK
- Install Eclipse. I use the enterprise addition@ Eclipse IDE for Enterprise Java Developers
- From eclipse marketplace install checkstyle.
- From eclipse marketplace install gwt plugin.
- Follow the instruction @ Download and Install the GWT SDK. After un-zipping gwt 2.9.0 you need to go to preferences in eclipse and add the path to gwt under Window->Preferences->GWT>GWT Settings hit the add button and navigate to where you un-zipped the SDK.
- From eclipse you then just need to import the project General->Import Existing Project into Workspace.
This project is licensed under the APACHE V2 license.