ABOUT US

|

SUPPORT

|

BLOGS

 

 

DEVELOPER BLOG

 

 

 

 

 

 

 

Mouse gestures with WebRenderer

 

Anthony Scotney

 

 

 

 

 

Mouse gestures are one of those great “add-ons” that enhance browser usability. For those that are not familiar with mouse gestures, they are a browser navigational aid that works via mouse movements. Mouse gestures have been around for some time now and we thought it would be good to show how to implement mouse gestures in WebRenderer.

This demonstration application not only aids in browser navigation, but also shows how to draw on top of the WebRenderer browser. To enact a mouse gesture one holds down the right mouse button and moves the mouse in a direction or pattern and the browser matches this pattern against a predefined list. After the browser interprets the mouse movement pattern it is matched to a browser action, such as “go back” or “reload page”. Mouse gestures can be visually interpreted by the user thanks to a “tail” which is drawn on the browser (web page) as the user performs the gesture.

The mouse gestures example including source code can be downloaded here..

Below is a screen capture of a mouse gesture in action. The thick red line is the gesture being performed by the user. The gesture underway in this screen capture is telling the WebRenderer browser to “Go Back”.

The example code can be launched with RunGestureBrowser.bat (included in the download). This particular launcher is for Windows, using WebRenderer libraries, although the demo will work on any platform supported by WebRenderer.

SOURCE CODE
There are two Java files for this demo:

TestBrowser.java is the standard WebRenderer Test Browser with two extra lines of code calling the Gestures class.
Gestures.java contains the relevant code for implementing the mouse gesture trails and actions.

The mouse gestures example including source code can be downloaded here..

 

 

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • DZone
  • Google Bookmarks
  • LinkedIn
  • TwitThis

 

 


 

 

 

 

About this blog..

 

This is an informal place for the team at JadeLiquid to discuss software, the rotation of the earth and other things usually discussed in the JadeLiquid corridors.

 

 

 

Subscribe: By Feed  By Email

 

 

 

 

 

Categories

 

 

Desktop Edition

 

Java™

 

Server Edition

 

Swing Edition

 

Uncategorized

 

WebRenderer

 

 

 

 

Recent Posts

 

 

Flash in Java browser - Enabling Flash within WebRenderer
Browser Zoom Effect using WebRenderer
WebRenderer Swing now supporting HTML5 video
Enabling HTML 5 WebSockets in WebRenderer
Applet deployment techniques for platform deterministic libraries

 

 

 

 

 

Popular Posts

 

 

Flash in Java browser - Enabling Flash within WebRenderer
Deploying WebRenderer with Java Web Start on 64bit systems
WebRenderer Swing Edition 6 Released!
Rich Test Browser - WebRenderer features on display
Enabling HTML 5 WebSockets in WebRenderer
Browser Zoom Effect using WebRenderer
Applet deployment techniques for platform deterministic libraries
Deploying WebRenderer Server Edition in Tomcat
WebRenderer Swing now supporting HTML5 video
WebRenderer adds high performance Text Search and Highlight capability

 

 

 

 

 

Archives

 

 

September 2013 (1) May 2013 (1) January 2013 (1) November 2012 (2) October 2012 (1) September 2012 (1) May 2012 (1) November 2011 (1) October 2011 (2) September 2011 (1) August 2011 (1)

 

 

 

 

Millions of deployments and counting.. Users of JadeLiquid's tools can be found in every corner of the Earth

 

   News

 

 > Enabling Flash in WebRenderer - Article
 > Browser Zoom Effect using WebRenderer - Article
 > Applet deployment techniques - Article
 > WebRenderer core features on display! - Article
 
 
   Additional News  
 
 > Enabling HTML 5 WebSockets in WebRenderer - Blog
 > 64bit WebRenderer deployment with Web Start - Blog
 > Deploying WebRenderer Server Edition in Tomcat - Blog
 > WebRenderer 6 adds performance text search - Blog
 

 

  Copyright JadeLiquid Software - 2024    Java and the Java Logo are trademarks or registered trademarks of Oracle Corporation in the United States and other countries  Privacy Policy  |  Disclaimer