Examples of GeometryUtilsResponse


Examples of org.geomajas.widget.searchandfilter.command.dto.GeometryUtilsResponse

    GwtCommand command = new GwtCommand(GeometryUtilsRequest.COMMAND);
    command.setCommandRequest(request);
    GwtCommandDispatcher.getInstance().execute(command, new CommandCallback() {
      public void execute(CommandResponse response) {
        if (response instanceof GeometryUtilsResponse) {
          GeometryUtilsResponse resp = (GeometryUtilsResponse) response;
          if (onFinished != null) {
            Geometry[] geoms = new Geometry[2];
            geoms[0] = GeometryConverter.toGwt(resp.getGeometries()[0]);
            geoms[1] = GeometryConverter.toGwt(resp.getGeometries()[1]);
            onFinished.execute(geoms);
          }
        }
      }
    });
View Full Code Here

Examples of org.geomajas.widget.searchandfilter.command.dto.GeometryUtilsResponse

    GwtCommand command = new GwtCommand(GeometryUtilsRequest.COMMAND);
    command.setCommandRequest(request);
    GwtCommandDispatcher.getInstance().execute(command, new CommandCallback() {
      public void execute(CommandResponse response) {
        if (response instanceof GeometryUtilsResponse) {
          GeometryUtilsResponse resp = (GeometryUtilsResponse) response;
          if (onFinished != null) {
            onFinished.execute(GeometryConverter.toGwt(resp.getGeometries()[0]));
          }
        }
      }
    });
  }
View Full Code Here

Examples of org.geomajas.widget.searchandfilter.command.dto.GeometryUtilsResponse

    GwtCommand command = new GwtCommand(GeometryUtilsRequest.COMMAND);
    command.setCommandRequest(request);
    GwtCommandDispatcher.getInstance().execute(command, new CommandCallback() {
      public void execute(CommandResponse response) {
        if (response instanceof GeometryUtilsResponse) {
          GeometryUtilsResponse resp = (GeometryUtilsResponse) response;
          if (onFinished != null) {
            Geometry[] geometriesArray = new Geometry[resp.getGeometries().length];
            for (int i = 0; i < geometriesArray.length; i++) {
              geometriesArray[i] = GeometryConverter.toGwt(resp.getGeometries()[i]);
            }
            onFinished.execute(geometriesArray);
          }
        }
      }
View Full Code Here

Examples of org.geomajas.widget.searchandfilter.command.dto.GeometryUtilsResponse

    result[0] = merged;
    return result;
  }

  public GeometryUtilsResponse getEmptyCommandResponse() {
    return new GeometryUtilsResponse();
  }
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.