AbstractSnappingController.java 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号