Results 1 to 6 of 6
  1. #1
    saachin2005 is offline Member
    Join Date
    Sep 2010
    Posts
    3
    Rep Power
    0

    Default Drawing 2D multi axis graph with option to get the coordinates of 2 points (user sel)

    Hi,

    Can anyone help me in developing a jsp to display a multi axis graph with the following requirements.?? I am new to java.

    I have taken all the inputs from previous page and on click of continue button, 3 ArrayLists data are populated in my Value Object. they are

    1. pressureList
    2. timeList
    3. pressureDerrivativeList

    I have done till this part. Now next page should show a multi axis graph

    I need to create a jsp which will show a 2 dimensional multi axes graph. ie a horizontal axis 'X' and 2 vertical axes at its both ends (Y and Y`). so this would be

    timeList (X) v/s pressureList (Y) and
    timeList (X) v/s pressureDerrivativeList (Y`)

    Now user selects 2 random points in the plot "X v/s Y" where he feels that its a straight line and on click of submit button, at the controller, I sould get the coordinates of these 2 points to calculate the slope between those 2 user selected points.

    If you can help me in developing this jsp, it would be of great great help.
    A picture of the graph is attached to this thread.

    Thanks in Advance...
    Attached Thumbnails Attached Thumbnails Drawing 2D multi axis graph with option to get the coordinates of 2 points (user sel)-hornerplot.jpg  
    Last edited by saachin2005; 10-01-2010 at 07:40 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    This is site is not a provide-me-the-code type service. We'll be more than happy to help you with problems with your code, but if all you want is the code and nothing more, then your best bet is to go to rent a coder . com. Otherwise, do your best to create your program, and then feel free to come on back with your code and any specific questions if you get stuck.

    Luck.

  3. #3
    saachin2005 is offline Member
    Join Date
    Sep 2010
    Posts
    3
    Rep Power
    0

    Default

    Oh sorry for that..!! But I have seen few threads asking for that :) ..Im actually a petroleum engr..Right now working on a project to develop a tool for well testing..
    I know the basics of java...But not completely about jsp...I have done almost everything except this page..!!

    And I seriously need some guidance.

    Can anyone tell me how to start with this ??

    Like what API to be used etc etc..

    If I can get a start, Im pretty sure that I can do it.

    Pls Pls.!!!

    Thanks in Advance.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,576
    Rep Power
    23

    Default

    Why do you want/need to use jsp?
    An applet would give you more power in the browser.

  5. #5
    saachin2005 is offline Member
    Join Date
    Sep 2010
    Posts
    3
    Rep Power
    0

    Default

    Not necessarily... Anything would do... But once the plot is displayed, user will select 2 random points from the graph and on click of continue button, the coordinates of these 2 points should be available at the back end to calculate the slope..

    Is it possible through applet ??

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,576
    Rep Power
    23

    Default

    The applet can recognize mouse clicks on the graph, get their coordinates and send them to a server.

    Since jsp does not execute in a browser, I can't understand how you would use jsp.
    I thought that jsp was a server side package that generates HTML pages. For interaction with a user in a browser you would use javascript.

Similar Threads

  1. Replies: 2
    Last Post: 04-10-2010, 06:35 PM
  2. Drawing Graph and Add to JPanel
    By halo3 in forum NetBeans
    Replies: 17
    Last Post: 09-22-2009, 01:31 PM
  3. drawing points with mouse
    By josephdcoleman in forum New To Java
    Replies: 4
    Last Post: 03-03-2009, 12:39 AM
  4. Drawing points on a JPanel
    By josephdcoleman in forum New To Java
    Replies: 6
    Last Post: 02-25-2009, 03:47 PM
  5. Replies: 0
    Last Post: 06-28-2008, 09:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •