Hey team and Jesse in particular,

I want to use the mouse wheel to modify the amount of buffer applied to the
SmartBuffer Tool hoverer the ScrollZoom Background Tool is active and messes
with my plans. Is there a way to disable background tools programatically,
use the mouse wheel for my buffer tool then then enable the ScrollZoom
again?

If not, is it possible to add a flag to the ScrollZoom Tool so that it can
be disable then enable, this will allow other tools to temporarily use the
mouse wheel without having the map zoom in the process?

Something like:

private boolean disabled = false;

public void disabled(boolean disabled){
        this.disabled = disabled;
}

public void mouseWheelMoved(MapMouseWheelEvent e) {

    if(disabled)
        return;

    if( e.modifiersDown() )
        return;

    NavigationUpdateThread.getUpdater().zoomWithFixedPoint(e.clickCount * 3,
getContext(), NavigationUpdateThread.DEFAULT_DELAY,e.getPoint());

    }
}

Thanks,

Mr Levi Putna
[email protected]
www.ozblog.com.au
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to