org.onebusaway.geospatial.model
Class CoordinateBounds

java.lang.Object
  extended by org.onebusaway.geospatial.model.CoordinateBounds
All Implemented Interfaces:
Serializable

public final class CoordinateBounds
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
CoordinateBounds()
           
CoordinateBounds(CoordinateBounds bounds)
           
CoordinateBounds(double lat, double lon)
           
CoordinateBounds(double minLat, double minLon, double maxLat, double maxLon)
           
 
Method Summary
 void addBounds(CoordinateBounds bounds)
           
 void addPoint(double lat, double lon)
           
 void clear()
           
 boolean contains(CoordinatePoint point)
           
 boolean contains(double lat, double lon)
           
 boolean equals(Object obj)
           
 double getMaxLat()
           
 double getMaxLon()
           
 double getMinLat()
           
 double getMinLon()
           
 int hashCode()
           
 CoordinateBounds intersection(CoordinateBounds r)
           
 boolean intersects(CoordinateBounds r)
           
 boolean isEmpty()
           
 void setEmpty(boolean empty)
           
 void setMaxLat(double maxLat)
           
 void setMaxLon(double maxLon)
           
 void setMinLat(double minLat)
           
 void setMinLon(double minLon)
           
 String toString()
           
 CoordinateBounds union(CoordinateBounds r)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinateBounds

public CoordinateBounds()

CoordinateBounds

public CoordinateBounds(double lat,
                        double lon)

CoordinateBounds

public CoordinateBounds(CoordinateBounds bounds)

CoordinateBounds

public CoordinateBounds(double minLat,
                        double minLon,
                        double maxLat,
                        double maxLon)
Method Detail

isEmpty

public boolean isEmpty()

setEmpty

public void setEmpty(boolean empty)

getMinLat

public double getMinLat()

setMinLat

public void setMinLat(double minLat)

getMinLon

public double getMinLon()

setMinLon

public void setMinLon(double minLon)

getMaxLat

public double getMaxLat()

setMaxLat

public void setMaxLat(double maxLat)

getMaxLon

public double getMaxLon()

setMaxLon

public void setMaxLon(double maxLon)

addPoint

public void addPoint(double lat,
                     double lon)

addBounds

public void addBounds(CoordinateBounds bounds)

clear

public void clear()

contains

public boolean contains(double lat,
                        double lon)

contains

public boolean contains(CoordinatePoint point)

intersects

public boolean intersects(CoordinateBounds r)

intersection

public CoordinateBounds intersection(CoordinateBounds r)

union

public CoordinateBounds union(CoordinateBounds r)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.