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);
}
}
LineStringEditController.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:geomajas-project-client-gwt
作者:
评论列表
文章目录