• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generating/Creating dynamic graphs

 
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
This task is very new for me. Ok, here is what I have to do:

1) The user will input a square matrix in a text file.
2) Java program (in fact servlet) will read this text file and will validate whether the input matrix is square or not? If yes then continue; else error screen.
3) After successfull validation, it will create a graph based on the values of matrix.
4) The created (generated) graph (image) will be displayed as an output to the user on his browser.

The business logic here is the method of creating graph based on matrix values. This method I know well on paper-pencil. But implementing the same in Java code and generating the graph is bit new. The later part, i.e. generating the graph is in fact the actual task.

I've developed an explained example with matrix (input) and the generated graph (output) here.

In the graph, you will see objects are linked with each other via arrows. This linking is decided on the matrix values. Most probably, I will be having images of objets saved in my haardisk. Only Linking them @ runtime have to be done.

Looking forward for the guideline to start implementing the task.

Thanks,

Bye,
Viki.
[ March 14, 2006: Message edited by: Bear Bibeault ]
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Viki have u find any help on it?

It seems Ranchers do not have any experience of it either...

I m too Waiting for a response... :roll:
 
author
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to use the Image/Jimiwriter classes. The following article will help you:

http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets-p2.html


To draw charts there free frameworks and commercial frameworks available on the market to simplify the above task.
[ March 15, 2006: Message edited by: ak pillai ]
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JFreeChart
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shopping for a Chart? Browse this catalogue

 
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic