org.openstreetmap.josm.data
Class ProjectionBounds

java.lang.Object
  extended by org.openstreetmap.josm.data.ProjectionBounds

public class ProjectionBounds
extends java.lang.Object

This is a simple data class for "rectangular" areas of the world, given in east/north min/max values.


Field Summary
 double maxEast
          The minimum and maximum coordinates.
 double maxNorth
          The minimum and maximum coordinates.
 double minEast
          The minimum and maximum coordinates.
 double minNorth
          The minimum and maximum coordinates.
 
Constructor Summary
ProjectionBounds(double minEast, double minNorth, double maxEast, double maxNorth)
           
ProjectionBounds(EastNorth p)
           
ProjectionBounds(EastNorth center, double east, double north)
           
ProjectionBounds(EastNorth min, EastNorth max)
          Construct bounds out of two points
 
Method Summary
 void extend(EastNorth e)
           
 EastNorth getCenter()
           
 EastNorth getMax()
           
 EastNorth getMin()
           
 boolean intersects(ProjectionBounds b)
          The two bounds intersect? Compared to java Shape.intersects, if does not use the interior but the closure.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minEast

public double minEast
The minimum and maximum coordinates.


minNorth

public double minNorth
The minimum and maximum coordinates.


maxEast

public double maxEast
The minimum and maximum coordinates.


maxNorth

public double maxNorth
The minimum and maximum coordinates.

Constructor Detail

ProjectionBounds

public ProjectionBounds(EastNorth min,
                        EastNorth max)
Construct bounds out of two points


ProjectionBounds

public ProjectionBounds(EastNorth p)

ProjectionBounds

public ProjectionBounds(EastNorth center,
                        double east,
                        double north)

ProjectionBounds

public ProjectionBounds(double minEast,
                        double minNorth,
                        double maxEast,
                        double maxNorth)
Method Detail

extend

public void extend(EastNorth e)

getCenter

public EastNorth getCenter()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

intersects

public boolean intersects(ProjectionBounds b)
The two bounds intersect? Compared to java Shape.intersects, if does not use the interior but the closure. (">=" instead of ">")


getMin

public EastNorth getMin()

getMax

public EastNorth getMax()


JOSM