Package org.geomajas.gwt.client.gfx

Examples of org.geomajas.gwt.client.gfx.MenuContext


   * painted <code>FeatureTransaction</code>.
   */
  public boolean execute(Canvas target, Menu menu, MenuItem item) {
    FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
    if (featureTransaction != null) {
      MenuContext graphics = mapWidget.getMenuContext();
      coordinate = mapWidget.getMapModel().getMapView().getWorldViewTransformer().viewToWorld(
          graphics.getRightButtonCoordinate());
      String targetId = graphics.getRightButtonName();
      if (targetId != null && TransactionGeomIndexUtil.isEdge(targetId)) {
        index = TransactionGeomIndexUtil.getIndex(targetId);
        return true;
      }
    }
View Full Code Here


   * painted <code>FeatureTransaction</code>.
   */
  public boolean execute(Canvas target, Menu menu, MenuItem item) {
    FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
    if (featureTransaction != null) {
      MenuContext graphics = mapWidget.getMenuContext();
      String targetId = graphics.getRightButtonName();
      if (targetId != null && TransactionGeomIndexUtil.isVertex(targetId)) {
        index = TransactionGeomIndexUtil.getIndex(targetId);
        return true;
      }
    }
View Full Code Here

   * polygon's interior ring.
   */
  public boolean execute(Canvas target, Menu menu, MenuItem item) {
    FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
    if (featureTransaction != null) {
      MenuContext graphics = mapWidget.getMenuContext();
      String targetId = graphics.getRightButtonName();
      if (targetId != null && TransactionGeomIndexUtil.isInteriorRing(targetId, true)) {
        index = TransactionGeomIndexUtil.getIndex(targetId);
        return true;
      }
    }
View Full Code Here

   * polygon's exterior ring.
   */
  public boolean execute(Canvas target, Menu menu, MenuItem item) {
    FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction();
    if (featureTransaction != null) {
      MenuContext graphics = mapWidget.getMenuContext();
      String targetId = graphics.getRightButtonName();
      if (targetId != null && TransactionGeomIndexUtil.isExteriorRing(targetId, true)) {
        index = TransactionGeomIndexUtil.getIndex(targetId);
        return true;
      }
    }
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.gfx.MenuContext

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.