Interface ConstraintListener
-
- All Known Implementing Classes:
MarkerManagerViolationListener
public interface ConstraintListener
Interface for listening for notifications on specific events regarding a constraint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
dispose()
Callback when the listener has to be cleaned upvoid
violationAppeared(IViolation violation)
Called if a new violation appeared for the constraint on which the listener is registered.void
violationDisappeared(IViolation violation)
Called if a violation disappeared for the constraint on which the listener is registered.
-
-
-
Method Detail
-
violationAppeared
void violationAppeared(IViolation violation)
Called if a new violation appeared for the constraint on which the listener is registered.- Parameters:
violation
- The violation which appeared.
-
violationDisappeared
void violationDisappeared(IViolation violation)
Called if a violation disappeared for the constraint on which the listener is registered.- Parameters:
violation
- The violation which disappeared.
-
dispose
default void dispose()
Callback when the listener has to be cleaned up- Since:
- 2.1
-
-