LineStringEditController.java 文件源码

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

项目:geomajas-project-client-gwt 作者:
private void createTempLine(FeatureTransaction featureTransaction, MouseEvent<?> event) {
    if (featureTransaction.getNewFeatures() != null && featureTransaction.getNewFeatures().length > 0
            && tempLine == null) {
        Coordinate position = getPanPosition(event);
        LineString lineString = getGeometryIndex().getGeometry(featureTransaction).getGeometryFactory()
                .createLineString(new Coordinate[] { position, position });
        tempLine = new GfxGeometry("LineStringEditController.updateLine");
        tempLine.setGeometry(lineString);
        tempLine.setStyle(new ShapeStyle("#FFFFFF", 0, "#FF3322", 1, 1));
        mapWidget.render(tempLine, RenderGroup.VECTOR, RenderStatus.ALL);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号