Package nu.fw.jeti.plugins.drawing.shapes

Examples of nu.fw.jeti.plugins.drawing.shapes.Shape.changeCoordinates()


  public void execute(PicturesContent shapesBoard) {
    for (long shapeId : shapeIdList) {
      Shape s = allShapes.get(shapeId);
      if (s != null) {
        s.changeCoordinates(transVector);
      }
    }
    shapesBoard.pictureChanged();
  }
View Full Code Here


      // they should be in the good order: from the oldest to the newest
      Shape oldS = shapeList.get(i);
      Shape newShape = Plugin.createShape(oldS.getName(), Shape
          .generateId(), oldS.getAuthor(), oldS.getCoordinates(),
          oldS.getColor(), counter, oldS.isFilled());
      newShape.changeCoordinates(vector);
      Creation c = new Creation(newShape, allShapes, time,
          actionsAuthor, counter);
      creationActionsList.add(c);
      newShapesIdList.add(newShape.getShapeId());
      counter++;
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.