Class ToSoutheastChangeStrategy

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

public class ToSoutheastChangeStrategy extends Object
A strategy which enlarges an existing rectangle to the southeast.
  • Constructor Details

    • ToSoutheastChangeStrategy

      public ToSoutheastChangeStrategy(Rectangle2D original, boolean ratioFixed, double ratio, Rectangle2D bounds)
      Creates a new change strategy which enlarges the specified original rectangle to the southeast. The given ratio is enforced when indicated by ratioFixed.
      Parameters:
      original - the original rectangle
      ratioFixed - indicates whether the rectangle's ratio will be fixed to the ratio
      ratio - the possibly fixed ratio of the rectangle created by this strategy
      bounds - the bounds within which the new rectangle must be contained
  • Method Details