Examples of moveShape()


Examples of net.sf.fysix.leveleditor.tool.level.subtool.draw.ShapeMapObject.moveShape()

        for (IMapObject mo : Collections.unmodifiableCollection(mapobjs)){
          if(mo instanceof ShapeMapObject){
            ShapeMapObject refSMO = (ShapeMapObject)mo;
            if(refSMO.isSelected()){
              ShapeMapObject copySMO = refSMO.copy();
              copySMO.moveShape(diff, pos);
              //refSMO.setPosition();   
              copyLst.add(copySMO);
              if(dragInitiated==true){
                copySMO.setSelected(true);
                refSMO.setSelected(false);
View Full Code Here

Examples of net.sf.fysix.leveleditor.tool.level.subtool.draw.ShapeMapObject.moveShape()

      } else {
        for (IMapObject mo : Collections.unmodifiableCollection(mapobjs)){
          if(mo instanceof ShapeMapObject){
            ShapeMapObject refSMO = (ShapeMapObject)mo;
            if(refSMO.isSelected()){
              refSMO.moveShape(diff, pos);
              //refSMO.setPosition();
            }
          }
          if(mo instanceof SelectMapObject){
            SelectMapObject refSMO = (SelectMapObject)mo;
View Full Code Here

Examples of net.sf.fysix.leveleditor.tool.level.subtool.draw.ShapeMapObject.moveShape()

            for (IMapObject mo : Collections.unmodifiableCollection(mapobjs)){
              if(mo instanceof ShapeMapObject){
                ShapeMapObject refSMO = (ShapeMapObject)mo;
                if(refSMO.isSelected()){
                  ShapeMapObject copySMO = refSMO.copy();
                  copySMO.moveShape(diff, pos);
                  //refSMO.setPosition();   
                  copyLst.add(copySMO);
                  if(dragInitiated==true){
                    copySMO.setSelected(true);
                    refSMO.setSelected(false);
View Full Code Here

Examples of net.sf.fysix.leveleditor.tool.level.subtool.draw.ShapeMapObject.moveShape()

          case MODE_MOVE:
        for (IMapObject mo : Collections.unmodifiableCollection(mapobjs)){
          if(mo instanceof ShapeMapObject){
            ShapeMapObject refSMO = (ShapeMapObject)mo;
            if(refSMO.isSelected()){
              refSMO.moveShape(diff, pos);
              //refSMO.setPosition();
            }
          }
          if(mo instanceof SelectMapObject){
            SelectMapObject refSMO = (SelectMapObject)mo;
View Full Code Here

Examples of org.eclipse.graphiti.features.IMoveShapeFeature.moveShape()

        newContext.setLocation(ga.getX(), ga.getY());
        newContext.putProperty(ACTIVITY_MOVE_PROPERTY, true);

        IMoveShapeFeature moveFeature = getFeatureProvider().getMoveShapeFeature(newContext);
        if (moveFeature.canMoveShape(newContext)) {
          moveFeature.moveShape(newContext);
        }
      }
    }.doWork(activity, getDiagram());
  }
}
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.