Menu

#82 GraphZoomScrollPane does not handle zoom properly

open
nobody
5
2007-08-13
2007-08-13
Anonymous
No

AREA/CLASS/EXAMPLE AFFECTED:
GraphZoomScrollPane is not fully functionnal

SYNOPSIS:
When zooming, the scroll bar of the scroll pane, doesnt ajust properly.

DESCRIPTION:
Zooming into the graph does not change the scroll bars in a proper way. some vertices become unreachable.

REPEAT BY:
Just go to
http://jung.sourceforge.net/applet/mstdemo.html
and try to zoom in and pan a little bit and the bug will appear.

STACK TRACE:
no

SAMPLE FIX/WORKAROUND:
I think that it is related to the zoom point. considering the zoom point the total zone occupied by the graph changed and maybe is not updated correctly.
I just dont use the GraphZoomScrollPane, and just replace it by a normal scrollpane and i constraint the zoom point to the origin.
I d like to have thte time to fix the GraphZoomScrollPane.

salvati_marc@yahoo.fr

Discussion

  • Joshua O'Madadhain

    Logged In: YES
    user_id=709417
    Originator: NO

    Marc:

    I don't see the behavior you're describing, and this bug report is not specific enough for us to be able to follow up on it. (You don't even specify which of the three panes this is happening in.)

    If you want this report to remain open, please supply more specific information that will allow us to repeat what you're seeing. Otherwise I will close it.

    Joshua

     
  • Tom Nelson

    Tom Nelson - 2007-08-16

    Logged In: YES
    user_id=1211988
    Originator: NO

    I think this is because TreeLayout ignores the layout size, and
    GraphZoomScrollPane uses the layout size to set the scrollbars.

    Tom Nelson

     
  • akubimarco

    akubimarco - 2007-08-19

    Logged In: YES
    user_id=1585079
    Originator: NO

    I thin the bug in http://jung.sourceforge.net/applet/mstdemo.html is obvious.
    To repeat the bug you dont need even to zoom...

    1- go to the url http://jung.sourceforge.net/applet/mstdemo.html is obvious.
    2- look at the right bottom graph, there s already some node you cant really see, and there s no scroll bar.
    3- move the only appearing scroll bar you can move: upright corner vertical scrollbar, lets call it (1).
    4- let s call the vertical scrollbar of the right bottom (2).
    5- when moving (1) to the bottom, (2) appears, but when one is to the max bottom value, (2) dissapear.

    I add the same kind of problem, what ever layout I used.
    The scrollbars are some time dissapearing, or dont enable to view the full graph.
    you can try other combination of move, it will fail the same way.

    I tried the radialLayout, and ballon demonstration, it seems theres no problem.

    So it seems theres a problem with the TreeLayout.

    In my case, I m not using TreeLayout, but StaticLayout.
    I m changing the position of the node of my static layout, and reseting layout, and component size, but it does not work well with zoom.
    As my example is quite complicated to extract from my project in a running example. If I have time I will try to show some codes, but as there s the same problem with the Treelayout, I guess the solution could be the same.

     
  • Peter Adolphs

    Peter Adolphs - 2010-03-30

    I see the same bug on http://jung.sourceforge.net/applet/mstdemo.html in the panel "Original Graph using TreeLayout" (and in my applications using a StaticLayout of the TreeLayout of the MST of a graph), provided that one of the randomly generated graphs is large enough that it doesn't fit into the panel. If it is not, just reload the page. If at least one of the graphs is larger than the panel, the vertical scrollbar will not be present. I can provide you with a screenshot but I don't see a way to attach it to this report.

     

Log in to post a comment.

MongoDB Logo MongoDB