Menu

#216 Switching to spectrum view zooms in too far by default

open-postponed
nobody
None
2
2009-08-19
2006-10-30
Jamie
No

When you switch to spectrum view, it's way too far
zoomed in.

Discussion

  • Jamie

    Jamie - 2006-10-30

    Logged In: YES
    user_id=1535862

    Zooming works by being an AdjustmentListener. If the new
    value is the same as the old value, the adjustment doesn't
    register and zooming doesn't happen. This is fixed by
    performing some random zoom first, and then setting the real
    zoom values.

    in order to enforce this:
    added zoomOut() method to be used instead of zoom(int, int).
    zoom(int,int) should only be used by ZoomableChart
    Enforcing this by changing zoom to a protected method and
    changing references to zoom to zoomOut() or zoomOutHalf()

     
  • Jamie

    Jamie - 2006-10-30
    • status: open --> closed-fixed
     
  • Dave Musicant

    Dave Musicant - 2006-10-31
    • milestone: 637704 -->
    • status: closed-fixed --> open-fixed
     
  • Dave Musicant

    Dave Musicant - 2006-10-31

    Logged In: YES
    user_id=794974

    I opened this bug back up, but took it off the sept2006
    release, because it seemed there had to be a cleaner way to
    make the fix. Why not make all the relevant code in
    adjustmentValueChanged a separate method, then call it from
    both places?

     
  • Jamie

    Jamie - 2006-11-02

    Logged In: YES
    user_id=1535862

    That makes some sense. In zooming, though, you will need to
    change the values of the scroll-bar no matter what. So
    either way adjustmentValueChanged will be called. If we
    refactor the relevant code elsewhere, it should work, and
    probably simplify things, but it also means that every time
    you zoom, you'll be doing everything twice.

     
  • Jamie

    Jamie - 2006-11-13
    • priority: 9 --> 5
     
  • Dave Musicant

    Dave Musicant - 2006-11-15
    • priority: 5 --> 3
    • assigned_to: inspired2apathy --> nobody
    • summary: Switching to spectrum view bad zoom --> Switching to spectrum view zooms twice
    • status: open-fixed --> open-postponed
     
  • Dave Musicant

    Dave Musicant - 2008-10-27
    • summary: Switching to spectrum view zooms twice --> Switching to spectrum view zooms in too far by default
     
  • Tom Bigwood

    Tom Bigwood - 2009-08-19
    • priority: 3 --> 2
     

Log in to post a comment.

MongoDB Logo MongoDB