|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.data.osm.visitor.AbstractVisitor
org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor
public class BoundingXYVisitor
Calculates the total bounding rectangle of a series of OsmPrimitive
objects, using the
EastNorth values as reference.
Field Summary | |
---|---|
private ProjectionBounds |
bounds
|
Constructor Summary | |
---|---|
BoundingXYVisitor()
|
Method Summary | |
---|---|
void |
computeBoundingBox(java.util.Collection<? extends OsmPrimitive> primitives)
|
void |
enlargeBoundingBox()
Enlarges the calculated bounding box by 0.002 degrees. |
void |
enlargeBoundingBox(double enlargeDegree)
Enlarges the calculated bounding box by the specified number of degrees. |
ProjectionBounds |
getBounds()
|
boolean |
hasExtend()
|
java.lang.String |
toString()
|
void |
visit(Bounds b)
|
void |
visit(EastNorth eastNorth)
|
void |
visit(LatLon latlon)
|
void |
visit(Node n)
Visiting call for points. |
void |
visit(ProjectionBounds b)
|
void |
visit(Relation e)
Visiting call for relations. |
void |
visit(Way w)
Visiting call for lines. |
Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor |
---|
visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private ProjectionBounds bounds
Constructor Detail |
---|
public BoundingXYVisitor()
Method Detail |
---|
public void visit(Node n)
Visitor
n
- The node to inspect.public void visit(Way w)
Visitor
w
- The way to inspect.public void visit(Relation e)
Visitor
e
- The relation to inspect.public void visit(Bounds b)
public void visit(ProjectionBounds b)
public void visit(LatLon latlon)
public void visit(EastNorth eastNorth)
public boolean hasExtend()
public ProjectionBounds getBounds()
null
if no coordinates have passedpublic void enlargeBoundingBox()
min
or max
equal null
) this method does not do anything.
public void enlargeBoundingBox(double enlargeDegree)
min
or max
equal null
) this method does not do anything.
enlargeDegree
- public java.lang.String toString()
toString
in class java.lang.Object
public void computeBoundingBox(java.util.Collection<? extends OsmPrimitive> primitives)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |