505152535455565758
if (e.getWheelRotation()== 0) return; double s = (e.getWheelRotation() < 0) ? 2 : 0.5; ZoomCommand cmd = new ZoomCommand(map, s, x, y); map.executeCommand(cmd); map.refreshMap(); }