Interface EntityTransformListener
- All Superinterfaces:
java.util.EventListener
public interface EntityTransformListener
extends java.util.EventListenerThis listener provides callbacks for when an
Entity was moved or changed its size.Method Summary
Modifier and Type Method Description default voidlocationChanged(IEntity entity)This method is called whenever the location of anIEntitywas changed.default voidsizeChanged(IEntity entity)This method is called whenever the size of anIEntitywas changed.
Method Details
locationChanged
This method is called whenever the location of anIEntitywas changed.- Parameters:
entity- The entity that changed its location.- See Also:
IEntity.setLocation(java.awt.geom.Point2D),IEntity.setLocation(double, double),IEntity.setX(double),IEntity.setY(double)
sizeChanged
This method is called whenever the size of anIEntitywas changed.- Parameters:
entity- The entity that changed its size.- See Also:
IEntity.setSize(double, double),IEntity.setHeight(double),IEntity.setWidth(double)
