本文整理汇总了Java中org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor类的典型用法代码示例。如果您正苦于以下问题:Java BoundingXYVisitor类的具体用法?Java BoundingXYVisitor怎么用?Java BoundingXYVisitor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BoundingXYVisitor类属于org.openstreetmap.josm.data.osm.visitor包,在下文中一共展示了BoundingXYVisitor类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: zoomTo
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; //导入依赖的package包/类
/**
* Focus the map on a specific OSM primitive
*
* @param primitive
* The primitive to zoom to
*/
private void zoomTo(final OsmPrimitive primitive) {
if (primitive == null) {
return;
}
if (primitive instanceof Node) {
MainApplication.getMap().mapView.zoomTo(((Node) primitive).getCoor());
return;
}
final BoundingXYVisitor v = new BoundingXYVisitor();
v.visit((Way) primitive);
MainApplication.getMap().mapView.zoomTo(v.getBounds());
}
示例2: visitBoundingBox
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; //导入依赖的package包/类
@Override
public void visitBoundingBox(final BoundingXYVisitor v) {
v.visit(this.bounds);
}
示例3: visitBoundingBox
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; //导入依赖的package包/类
@Override
public void visitBoundingBox(final BoundingXYVisitor arg0) {
// not supported
}
示例4: visitBoundingBox
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; //导入依赖的package包/类
@Override
public void visitBoundingBox(final BoundingXYVisitor visitor) {
// this operation is not supported
}
示例5: visitBoundingBox
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; //导入依赖的package包/类
@Override
public void visitBoundingBox(BoundingXYVisitor v) {
// TODO Auto-generated method stub
}
示例6: visitBoundingBox
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; //导入依赖的package包/类
@Override
public void visitBoundingBox(BoundingXYVisitor v) {}
示例7: visitBoundingBox
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; //导入依赖的package包/类
@Override
public void visitBoundingBox(BoundingXYVisitor v) {
v.visit(bounds);
}
示例8: visitBoundingBox
import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; //导入依赖的package包/类
@Override
public void visitBoundingBox(BoundingXYVisitor v) {
}