Class MoveChangeStrategy

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

public class MoveChangeStrategy extends Object
Moves the rectangle around.
  • Constructor Details

    • MoveChangeStrategy

      public MoveChangeStrategy(Rectangle2D previous, Rectangle2D bounds)
      Creates a new change strategy which moves the specified rectangle within the specified bounds.
      Parameters:
      previous - the previous rectangle this move is based on
      bounds - the bounds within which the rectangle can be moved
    • MoveChangeStrategy

      public MoveChangeStrategy(Rectangle2D previous, double maxX, double maxY)
      Creates a new change strategy which moves the specified rectangle within the specified bounds defined by the rectangle from (0, 0) to (maxX, maxY).
      Parameters:
      previous - the previous rectangle this move is based on
      maxX - the maximal x-coordinate of the right edge of the created rectangles; must be greater than or equal to the previous rectangle's width
      maxY - the maximal y-coordinate of the lower edge of the created rectangles; must be greater than or equal to the previous rectangle's height
  • Method Details