|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.sf.mapswidgets.Bounds
public final class Bounds
Instance of this class represents 2-dimensional bounding box.
If the Bounds is in the latitude/longitude coordinate system, the x coordinates represent longitude and the y coordinates represent latitude. If the latitude/longitude bounds crosses the International Date Line, the "minimum" coordinates refer to the top left coordinates rather than the mathematical minimum of the two coordinates.
The top left corner of the box is specified by its minX and minY values, and the bottom right corner of the box is specified by its maxX and maxY.
Application code does not need to explicitly release the
resources managed by each instance when those instances are no longer
required, and thus no dispose()
method is provided.
See Google Maps API documentation [Class Reference > GBounds].
Point
,
Size
Constructor Summary | |
---|---|
Bounds(double minX,
double minY,
double maxX,
double maxY)
Construct a new instance of this class given the minX, minY, maxX and maxY values. |
Method Summary | |
---|---|
Bounds |
clone()
|
boolean |
equals(java.lang.Object tested)
|
double |
getMaxX()
Get the x coordinate of the bottom right of the bounds. |
double |
getMaxY()
Get the y coordinate of the bottom right of the bounds. |
double |
getMinX()
Get the x coordinate of the top left of the bounds. |
double |
getMinY()
Get the y coordinate of the top left of the bounds. |
int |
hashCode()
|
void |
setMaxX(double maxX)
Set the x coordinate of the bottom right of the bounds. |
void |
setMaxY(double maxY)
Set the y coordinate of the bottom right of the bounds. |
void |
setMinX(double minX)
Set the x coordinate of the top left of the bounds. |
void |
setMinY(double minY)
Set the y coordinate of the top left of the bounds. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Bounds(double minX, double minY, double maxX, double maxY)
minX
- the x coordinate of the top left corner of the boundsminY
- the y coordinate of the top left corner of the boundsmaxX
- the x coordinate of the bottom right corner of the boundsmaxY
- the y coordinate of the bottom right corner of the boundsMethod Detail |
---|
public Bounds clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object tested)
equals
in class java.lang.Object
public double getMaxX()
See Google Maps API documentation [Class Reference > GBounds > maxX].
public double getMaxY()
See Google Maps API documentation [Class Reference > GBounds > maxY].
public double getMinX()
See Google Maps API documentation [Class Reference > GBounds > minX].
public double getMinY()
See Google Maps API documentation [Class Reference > GBounds > minY].
public int hashCode()
hashCode
in class java.lang.Object
public void setMaxX(double maxX)
See Google Maps API documentation [Class Reference > GBounds > maxX].
maxX
- the x coordinate of bottom right left of the boundspublic void setMaxY(double maxY)
See Google Maps API documentation [Class Reference > GBounds > maxY].
maxY
- the y coordinate of bottom right left of the boundspublic void setMinX(double minX)
See Google Maps API documentation [Class Reference > GBounds > minX].
minX
- the x coordinate of the top left of the boundspublic void setMinY(double minY)
See Google Maps API documentation [Class Reference > GBounds > minY].
minY
- the y coordinate of the top left of the boundspublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |