Class RotateCommand

    • Field Detail

      • startAngle

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

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

      • RotateCommand

        public RotateCommand​(java.util.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