Class NewChangeStrategy

    • Constructor Detail

      • NewChangeStrategy

        public NewChangeStrategy​(boolean ratioFixed,
                                 double ratio,
                                 Rectangle2D bounds)
        Creates a change strategy which creates a new rectangle. It respects the specified ratio if ratioFixed is true.
        Parameters:
        ratioFixed - indicates whether the ratio will be fixed
        ratio - defines the fixed ratio
        bounds - the bounds within which the new rectangle must be contained