Examples of removeHandler()


Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    // force 0.01
    mapView.setCurrentScale(0.01, MapView.ZoomOption.LEVEL_FIT);
    // zooms in to 0.01
    handler.expect(new Bbox(-9500, -4800, 20000, 10000), 0.01, false);
    handler.validate();
    registration.removeHandler();
   
    // test for 1 resolution
    resolutions = new ArrayList<Double>();
    resolutions.add(1 / 1.0);
    mapView.setResolutions(resolutions);
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    layer2.setSelected(false);
    Assert.assertEquals(LAYER2, deselectId);
    Assert.assertEquals(LAYER2, selectId);

    reg.removeHandler();
  }

  @Test
  public void testMoveLayerDown() {
    LayersModel layersModel = INJECTOR.getInstance(LayersModel.class);
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    layersModel.moveLayerDown(layer3);
    Assert.assertEquals(2, fromIndex);
    Assert.assertEquals(1, toIndex);

    reg.removeHandler();
  }

  @Test
  public void testMoveLayerUp() {
    LayersModel layersModel = INJECTOR.getInstance(LayersModel.class);
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    layersModel.moveLayerUp(layer1);
    Assert.assertEquals(0, fromIndex);
    Assert.assertEquals(1, toIndex);

    reg.removeHandler();
  }

  @Test
  public void testMoveLayer() {
    LayersModel layersModel = INJECTOR.getInstance(LayersModel.class);
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    // Corner case - move to same position. We don't expect an event.
    layersModel.moveLayer(layer3, 0);
    Assert.assertEquals(342, fromIndex);
    Assert.assertEquals(342, toIndex);

    reg.removeHandler();
  }

  @Test
  public void testLayerRemoval() {
    LayersModel layersModel = INJECTOR.getInstance(LayersModel.class);
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

      Assert.fail();
    } catch (NullPointerException npe) {
      // Test passed.
    }

    reg.removeHandler();
  }
}
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    viewPort.applyPosition(new Coordinate(342, 342));
    Assert.assertEquals(4.0, viewPort.getScale());
    Assert.assertNotNull(event);
    Assert.assertTrue(event instanceof ViewPortTranslatedEvent);

    reg.removeHandler();
  }

  @Test
  public void testApplyScale() {
    Assert.assertEquals(4.0, viewPort.getScale());
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    viewPort.applyScale(2.0);
    Assert.assertEquals(2.0, viewPort.getScale());
    Assert.assertNotNull(event);
    Assert.assertTrue(event instanceof ViewPortScaledEvent);

    reg.removeHandler();
  }

  @Test
  public void testApplyBounds() {
    Assert.assertEquals(4.0, viewPort.getScale());
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    viewPort.applyBounds(factory.createBbox(0, 0, 100, 100));
    Assert.assertEquals(8.0, viewPort.getScale());
    Assert.assertNotNull(event);
    Assert.assertTrue(event instanceof ViewPortChangedEvent);

    reg.removeHandler();
    reg = eventBus.addHandler(ViewPortChangedHandler.TYPE, new AllowTranslationHandler());

    // Expect to end up at the same scale, so no changed event, but translation only:
    viewPort.applyBounds(factory.createBbox(-50, -50, 100, 100));
    Assert.assertEquals(8.0, viewPort.getScale());
View Full Code Here

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()

    viewPort.applyBounds(factory.createBbox(-50, -50, 100, 100));
    Assert.assertEquals(8.0, viewPort.getScale());
    Assert.assertNotNull(event);
    Assert.assertTrue(event instanceof ViewPortTranslatedEvent);

    reg.removeHandler();
  }

  @Test
  public void testApplySameBounds() {
    Assert.assertEquals(4.0, viewPort.getScale());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.