PolygonEditController.java 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号