X应该为MapElement类型,该类实现了MapElement接口,定义了Point和Line两个子类,它们分别实现了move(double x, double y)方法,用于实现对每一个点和线的平移操作。