Interface ILockableRegion

All Superinterfaces:
IRegion
All Known Implementing Classes:
CircleSelection, EllipseSelection, HyperbolaSelection, ParabolaSelection

public interface ILockableRegion extends IRegion
This region allows control over which parts of the region can be moved. The alternative would be an API which allows one to can and set handle properties by ID. This currently is more complex than is required so a more high level design is implemented. If the method count here grows above 6, consider replacing ILockableRegion with a more flexible and abstract API, like getting and setting handle properties via abstract IDs.
  • Method Details

    • isCentreMovable

      boolean isCentreMovable()
      This may not be implemented depending on the region.
      Returns:
      true if it is movable
    • setCentreMovable

      void setCentreMovable(boolean isCentreMovable)
      This may not be implemented depending on the region. Set if the sector centre should be locked or not.
      Parameters:
      isCentreMovable -
    • isOuterMovable

      boolean isOuterMovable()
      This may not be implemented depending on the region. For instance Ellipse implements this but Sector does not.
      Returns:
      true if it is movable
    • setOuterMovable

      void setOuterMovable(boolean isOuterMovable)
      This may not be implemented depending on the region. For instance Ellipse implements this but Sector does not. Set if the ellipse outer handles should be locked or not.
      Parameters:
      isOuterMovable -