| By Duncan Thomas | Article Rating: |
|
| October 16, 2012 03:25 PM EDT | Reads: |
1,723 |
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..
For more on WebRenderer Swing Edition, visit here www.webrenderer.com
Published October 16, 2012 Reads 1,723
Copyright © 2012 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Duncan Thomas
Duncan Thomas, VP of sales at JadeLiquid Software, is a tech guy caught up in the business of tech!
- Cloud People: A Who's Who of Cloud Computing
- New Relic Q1 2013 Blazes Past Growth Targets and Reaches 40,000 Active Customer Accounts
- Learn How To Use Google Apps Script
- Cloud Expo New York: Rethink IT and Reinvent Business with IBM SmartCloud
- Cloud Expo New York: API Security, Does My Business Need an OAuth Server?
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- Cloud Expo NY: Best Practices for Delivering Oracle Database as a Service
- Measuring the Business Value of Cloud Computing
- Cloud Expo New York: Build Modern Business Applications
- Cloud Expo New York: Using APIs for Better Business Partnerships
- Five Big Data Features in SQL Server
- Cloud Expo New York: Evolving Cloud Computing Models
- Cloud People: A Who's Who of Cloud Computing
- New Relic Q1 2013 Blazes Past Growth Targets and Reaches 40,000 Active Customer Accounts
- Cloud Expo New York: Delivering Digital Marketing on the Cloud
- Learn How To Use Google Apps Script
- Cloud Expo New York: Rethink IT and Reinvent Business with IBM SmartCloud
- Cloud Expo New York: API Security, Does My Business Need an OAuth Server?
- Cloudant to Exhibit at Cloud Expo & Big Data Expo New York
- Cloud Expo New York: Basics of SSD Technology and Its Use in Cloud
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- The Accessibility of the Cloud
- Cloud Expo NY: Best Practices for Delivering Oracle Database as a Service
- Cloud Expo New York: Real-Time Analytics Using an In-Memory Data Grid
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- JavaServer Faces (JSF) vs Struts
- The i-Technology Right Stuff
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- What's New in Eclipse?
- Where Are RIA Technologies Headed in 2008?























