本文整理了Java中com.vividsolutions.jts.geom.Point.clone()
方法的一些代码示例,展示了Point.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.clone()
方法的具体详情如下:
包路径:com.vividsolutions.jts.geom.Point
类名称:Point
方法名:clone
[英]Creates and returns a full copy of this Point object. (including all coordinates contained by it).
[中]创建并返回此点对象的完整副本。(包括其包含的所有坐标)。
代码示例来源:origin: com.vividsolutions/jts
public Geometry reverse()
{
return (Geometry) clone();
}
代码示例来源:origin: com.vividsolutions/jts-core
public Geometry reverse()
{
return (Geometry) clone();
}
代码示例来源:origin: org.geotools/gt-render
public Object clone() {
return point.clone();
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public Object createMemento() {
return getGeometry().clone();
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public Object clone() {
SimpleFeaturePointFigure clone = (SimpleFeaturePointFigure) super.clone();
SimpleFeatureBuilder builder = new SimpleFeatureBuilder(simpleFeature.getFeatureType());
builder.init(simpleFeature);
clone.simpleFeature = builder.buildFeature(null);
clone.simpleFeature.setDefaultGeometry(getGeometry().clone());
clone.geometry = (Point) geometry.clone();
clone.sceneTransformProvider = sceneTransformProvider;
return clone;
}
内容来源于网络,如有侵权,请联系作者删除!