• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Freehand plot select features

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dear all,

I usually use JFreeChart for plotting the scientific data in my applications. Now I came across a requirement I don't know how to handle.
I need to implement in a scatter plot a utility to allow the user to choose features in a region of the plot (freehand o with a polygon, rectangle won't do).

Does anyone knows how to handle this? Either with JFreeChart or with other libraries.

Thanks!
Anna.
 
Saloon Keeper
Posts: 5581
144
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFreeChart has no interactive capabilities (unless you use it in a Java desktop app, where it comes with a GUI component that does). You will need to find another way to select regions aside from JFreeChart, maybe with an HTML area tag. But that can't handle freehand selections. Assuming we're even talking about a web app, which you haven't said. If it's a desktop app this could be implemented as part of the GUI.
 
Anna Amatus
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim,

Indeed is a Desktop app. I will try to override the MouseListener and implement it myself.

Anna
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!