Results 1 to 6 of 6
  1. #1
    kumar_gemi is offline Member
    Join Date
    Oct 2008
    Posts
    21
    Rep Power
    0

    Default overiew and detail in java

    Hello,

    I am drawing some vertical and horizontal lines in a jpanel. I want to have two jpanels one is an overview and the other one is a detailed view of the graph.

    I want to Place the overview of the graphic next to a zoomed "detail view." As the user drags a viewport around the overview, I need to show that part of the graphic in the detail view.

    Could someone help me soon. Its very urgent for my course work.

    Thanks in advance
    Kumar

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

    Default

    Help you how? What specific question do you have with this? What have you done so far? Do you have code for us to examine and critique?

    Best of luck

  3. #3
    kumar_gemi is offline Member
    Join Date
    Oct 2008
    Posts
    21
    Rep Power
    0

    Default

    Thank you for your reply. I have just drawn the lines in the panel. I don't have any idea on how to proceed with the code. I have drawn lines using g2d.drawline(x1,y1,x2,y2). Is it possible to draw the same line in both the panels(Overview and Detail view) one with a small screen which has the entire graph and the other one is a zoomed one.

    Thanks

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    It would seem to me that you would need a single non-GUI model of the data and then have two JPanel's display the data using the same model, one showing the over-all data, the other using a small subset of the data.

    One way to possibly speed up the process is to use a graphics library such as jfreechart or something similar.

  5. #5
    kumar_gemi is offline Member
    Join Date
    Oct 2008
    Posts
    21
    Rep Power
    0

    Default

    Thankyou for your reply. Could you explain it with a sample code.

    Regards
    Kumar

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    That might be asking quite a bit more work than a volunteer should have to do. It ususally works better if you create the code and then ask questions about it. Best of luck.

Similar Threads

  1. Replies: 1
    Last Post: 08-22-2008, 07:28 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
  •