Package org.geomajas.gwt.client.map.feature

Examples of org.geomajas.gwt.client.map.feature.TransactionGeomIndex


    return menu;
  }

  public TransactionGeomIndex getGeometryIndex() {
    if (index == null) {
      index = new TransactionGeomIndex();
      index.setFeatureIndex(0);
      index.setCoordinateIndex(0);
    }
    return index;
  }
View Full Code Here


  }

  public void onMouseMove(MouseMoveEvent event) {
    FeatureTransaction featureTransaction = getFeatureTransaction();
    if (featureTransaction != null && parent.getEditMode() == EditMode.DRAG_MODE && dragTargetId != null) {
      TransactionGeomIndex index = TransactionGeomIndexUtil.getIndex(dragTargetId);

      Feature feature = dragTransaction.getNewFeatures()[index.getFeatureIndex()];
      FeatureOperation op = new SetCoordinateOp(index, getWorldPosition(event));
      op.execute(feature);

      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
View Full Code Here

        mapWidget.render(featureTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
        updateGeometricInfo();
      } else if (featureTransaction != null && parent.getEditMode() == EditMode.DRAG_MODE &&
          dragTargetId != null) {
        // Done dragging a point:
        TransactionGeomIndex index = TransactionGeomIndexUtil.getIndex(dragTargetId);
        // TODO: check validity
        FeatureOperation op = new SetCoordinateOp(index, getWorldPosition(event));
        featureTransaction.execute(op);
        if (dragTransaction != null) {
          mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
View Full Code Here

  // EditController implementation:
  // -------------------------------------------------------------------------

  public TransactionGeomIndex getGeometryIndex() {
    if (index == null) {
      index = new TransactionGeomIndex();
      index.setExteriorRing(true);
      index.setGeometryIndex(0);
      index.setCoordinateIndex(0);
      index.setFeatureIndex(0);
    }
View Full Code Here

    return menu;
  }

  public TransactionGeomIndex getGeometryIndex() {
    if (index == null) {
      index = new TransactionGeomIndex();
      index.setFeatureIndex(0);
      index.setCoordinateIndex(0);
      index.setExteriorRing(true);
    }
    return index;
View Full Code Here

  }

  public void onMouseMove(MouseMoveEvent event) {
    FeatureTransaction featureTransaction = getFeatureTransaction();
    if (featureTransaction != null && parent.getEditMode() == EditMode.DRAG_MODE && dragTargetId != null) {
      TransactionGeomIndex index = TransactionGeomIndexUtil.getIndex(dragTargetId);

      Feature feature = dragTransaction.getNewFeatures()[index.getFeatureIndex()];
      FeatureOperation op = new SetCoordinateOp(index, getWorldPosition(event));
      op.execute(feature);

      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
View Full Code Here

        mapWidget.render(featureTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
        updateGeometricInfo();
      } else if (featureTransaction != null && parent.getEditMode() == EditMode.DRAG_MODE
          && dragTargetId != null) {
        // Done dragging a point:
        TransactionGeomIndex index = TransactionGeomIndexUtil.getIndex(dragTargetId);
        // TODO: check validity
        FeatureOperation op = new SetCoordinateOp(index, getWorldPosition(event));
        featureTransaction.execute(op);
        if (dragTransaction != null) {
          mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
View Full Code Here

  // EditController implementation:
  // -------------------------------------------------------------------------

  public TransactionGeomIndex getGeometryIndex() {
    if (index == null) {
      index = new TransactionGeomIndex();
      index.setGeometryIndex(0);
      index.setCoordinateIndex(0);
      index.setFeatureIndex(0);
    }
    return index;
View Full Code Here

    return menu;
  }

  public TransactionGeomIndex getGeometryIndex() {
    if (index == null) {
      index = new TransactionGeomIndex();
      index.setFeatureIndex(0);
      index.setCoordinateIndex(0);
    }
    return index;
  }
View Full Code Here

    }
  }

  public void onMouseMove(MouseMoveEvent event) {
    if (getFeatureTransaction() != null && parent.getEditMode() == EditMode.DRAG_MODE && dragTargetId != null) {
      TransactionGeomIndex index = TransactionGeomIndexUtil.getIndex(dragTargetId);

      Feature feature = dragTransaction.getNewFeatures()[index.getFeatureIndex()];
      FeatureOperation op = new SetCoordinateOp(index, getWorldPosition(event));
      op.execute(feature);

      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.map.feature.TransactionGeomIndex

Copyright © 2018 www.massapicom. 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.