Class RotateCommand

All Implemented Interfaces:
PseudoCommand

RotateCommand rotates a number of objects around their centre.
  • Field Details

    • pivot

      private final EastNorth pivot
      Pivot point
    • startAngle

      private double startAngle
      angle of rotation starting click to pivot
    • rotationAngle

      private double rotationAngle
      computed rotation angle between starting click and current mouse pos
    • deltaAngle

      private double deltaAngle
  • Constructor Details

    • RotateCommand

      public RotateCommand(Collection<? extends OsmPrimitive> objects, EastNorth currentEN)
      Creates a RotateCommand. Assign the initial object set, compute pivot point and initial rotation angle.
      Parameters:
      objects - objects to fetch nodes from
      currentEN - current east/north
  • Method Details