Interface EntityTransformListener
- All Superinterfaces:
java.util.EventListener
public interface EntityTransformListener
extends java.util.EventListener
This listener provides callbacks for when an
Entity
was moved or changed its size.Method Summary
Modifier and Type Method Description default void
locationChanged(IEntity entity)
This method is called whenever the location of anIEntity
was changed.default void
sizeChanged(IEntity entity)
This method is called whenever the size of anIEntity
was changed.
Method Details
locationChanged
This method is called whenever the location of anIEntity
was 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 anIEntity
was changed.- Parameters:
entity
- The entity that changed its size.- See Also:
IEntity.setSize(double, double)
,IEntity.setHeight(double)
,IEntity.setWidth(double)