ABOUT US

|

SUPPORT

|

BLOGS

 

 

DEVELOPER BLOG

 

 

 

 

 

 

 

WebRenderer adds high performance Text Search and Highlight capability

 

Anthony Scotney

 

 

 

 

 

WebRenderer Swing Edition 6.0 beta #6 has officially shipped. With this latest beta we have included a few new important features including print preview, improvements to overall printing and a new set of API methods for high performance Text Searching and Highlighting geared for large web documents.

The new high performance Textual Search API has been added to WebRenderer at the request of one of our clients. This API significantly expands on the Textual Search capabilities of WebRenderer. This is especially evident when searching and highlighting multiple terms in large documents. This feature is particularly applicable to any web-enabled document review application that makes use of “Find”, and “Find and Highlight” features. Although this may seem trivial, the implementation took quite some time and many client-review iterations to perfect. Getting the speed and optimal performance out of textual search and highlighting is a lot more complicated than one would expect. The complications come via searching large web pages/documents (3mb+) and highlighting more than a single term across multiple HTML nodes (such as partially bolded text). We have also added the ability to Cancel text searching mid-search, and remove all search highlighting.

The features at a glance:

  • Parallel searching (multiple terms race each-other in highlighting text)
  • Finds search terms split across document Nodes (such as partially bolded text)
  • Runs in background and does not lock-up the User Interface whist searching
  • Multi-colored search highlights

The API is as follows;

// IFindService added - can be called multiple times for concurrent searches
IFindService findService = (IMozillaBrowserCanvas)browser.getFindService();

// Actions on the IFindService
findAndHighlight(String text, Color color);
findAndHighlight(String text, Color color, FindFlag[] flags);
cancelAllSearches();
clearAllMatches();
nextMatch();
previousMatch();

An example demonstrating the Text Search and Highlight functionality is available (TextHighlightExample.java) here..

Additionally in beta 6 improvements have been made to the internal printing code within WebRenderer. This results in improved printing of pages that are consistent with how the page is rendered on screen. We have also added a new Print Preview feature which includes support for displaying the preview within the browser window or externally as a popup window. Overall rendering quality of print preview is consistent with the base rendering of the page. This is good news as for quite some time print-preview left a lot to be desired in terms of page rendering consistency. The print layout in previous versions really messed with the overall UI. Consistency is good and the new Print Preview is a worthy addition to the Swing Edition 6.0.

browser.printPreview(); // Shows in parent window
browser.printPreviewInNewWindow(); // Shows in popup window

 

 

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