AbstractSnappingController.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:geomajas-project-client-gwt 作者:
/**
 * Return the world position of the mouse event, unless snapping is activated. If that is the case, a snapped point
 * will be returned (still in world space).
 */
protected Coordinate getWorldPosition(MouseEvent<?> event) {
    Coordinate world = super.getWorldPosition(event);
    if (snappingActive) {
        return snapper.snap(world);
    }
    return world;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号