Package org.geomajas.gwt.client.spatial.geometry.operation

Examples of org.geomajas.gwt.client.spatial.geometry.operation.SetCoordinateOperation.execute()


  }

  private LineString execute(LineString lineString) {
    oldPosition = (Coordinate) lineString.getCoordinateN(index.getCoordinateIndex()).clone();
    SetCoordinateOperation op = new SetCoordinateOperation(index.getCoordinateIndex(), newPosition);
    return (LineString) op.execute(lineString);
  }

  private void execute(Point point) {
    if (index.getCoordinateIndex() == 0) {
      oldPosition = (Coordinate) point.getCoordinate().clone();
View Full Code Here


    }
  }

  private LineString undo(LineString lineString) {
    SetCoordinateOperation op = new SetCoordinateOperation(index.getCoordinateIndex(), oldPosition);
    return (LineString) op.execute(lineString);
  }

  private void undo(Point point) {
    if (index.getCoordinateIndex() == 0) {
      setCoordinate(point, oldPosition);
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.