|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.wms.client.Envelope
public class Envelope
Defines an Envelope object used for setting extents of maps or layers.
Envelope bounds = new Envelope();
bounds.setMinX(-71.63);
bounds.setMinY(41.75);
bounds.setMaxX(-70.78);
bounds.setMaxY(42.90);
bounds.setSpatialReference(SpatialReference.EPSG4326);
Constructor Summary | |
---|---|
Envelope()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares the specified object with this instance for equality. |
Point |
getCenterPoint()
Gets the center point of the envelope. |
Envelope |
getCopy()
Gets a copy of the current instance. |
double |
getHeight()
Returns the height of the envelope object. |
double |
getMaxX()
Returns the maximum x coordinate value of the envelope object. |
double |
getMaxY()
Returns the maximum y coordinate value of the envelope object. |
double |
getMinX()
Returns the minimum x coordinate value of the envelope objects. |
double |
getMinY()
Returns the minimum y coordinate value of the envelope objects. |
SpatialReference |
getSpatialReference()
Gets the spatial reference of the envelope. |
double |
getWidth()
Returns the width of the envelope object. |
int |
hashCode()
Returns the hash code of the request object. |
boolean |
isEmpty()
Indicates whether this geometry contains any points. |
void |
reaspect(double width,
double height)
Adjusts the current envelope based on the aspect ratio of the given width and height. |
void |
setMaxX(double maxX)
Sets the maximum x coordinate value of the envelope objects. |
void |
setMaxY(double maxY)
Sets the maximum y coordinate value of the envelope objects. |
void |
setMinX(double minX)
Sets the minimum x coordinate value of the envelope objects. |
void |
setMinY(double minY)
Sets the minimum y coordinate value of the envelope objects. |
void |
setSpatialReference(SpatialReference spatialReference)
Sets the spatial reference of the envelope. |
void |
swapAxis()
Swaps the x y axis of the envelope. |
String |
toBBoxString(String version)
Represents the envelope as a WMS BoundingBox string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Envelope()
Method Detail |
---|
public Envelope getCopy()
public boolean isEmpty()
public void setMinX(double minX)
minX
- is the minimum x value.getMinX()
public void setMinY(double minY)
minY
- is the minimum y value.getMinY()
public void setMaxX(double maxX)
maxX
- is the maximum x value.getMaxX()
public void setMaxY(double maxY)
maxY
- is the maximum y value.getMaxY()
public double getMinX()
setMinX(double)
public double getMinY()
setMinY(double)
public double getMaxX()
setMaxX(double)
public double getMaxY()
setMaxY(double)
public double getWidth()
public double getHeight()
public SpatialReference getSpatialReference()
public void setSpatialReference(SpatialReference spatialReference)
spatialReference
- The spatialReference to set.public Point getCenterPoint()
public void reaspect(double width, double height)
width
- height
- public String toBBoxString(String version)
version
- the version of WMS service.
public void swapAxis()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- object to be compared for equality with this instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |