|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.data.ProjectionBounds
public class ProjectionBounds
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 |
---|
public double minEast
public double minNorth
public double maxEast
public double maxNorth
Constructor Detail |
---|
public ProjectionBounds(EastNorth min, EastNorth max)
public ProjectionBounds(EastNorth p)
public ProjectionBounds(EastNorth center, double east, double north)
public ProjectionBounds(double minEast, double minNorth, double maxEast, double maxNorth)
Method Detail |
---|
public void extend(EastNorth e)
public EastNorth getCenter()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean intersects(ProjectionBounds b)
public EastNorth getMin()
public EastNorth getMax()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |