Class NewChangeStrategy

java.lang.Object
impl.org.controlsfx.tools.rectangle.change.NewChangeStrategy
All Implemented Interfaces:
Rectangle2DChangeStrategy

public class NewChangeStrategy extends Object
A strategy which creates a new rectangle.
  • Constructor Details

    • 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
  • Method Details