|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kaboum.util.KaboumExtent
public class KaboumExtent
This class define a spatial extent.
Field Summary | |
---|---|
double |
xMax
Upper right X coordinate |
double |
xMin
Lower left X coordinate |
double |
yMax
Upper right Y coordinate |
double |
yMin
Lower left Y coordinate |
boolean |
zoomOnShapes
in case of item query map mode, tells if kaboum should zoom on the found features. |
Constructor Summary | |
---|---|
KaboumExtent()
Default Constructor |
|
KaboumExtent(double xMin,
double yMin,
double xMax,
double yMax)
Constructor |
|
KaboumExtent(KaboumCoordinate coordLL,
KaboumCoordinate coordUR)
Constructor |
Method Summary | |
---|---|
boolean |
contains(KaboumCoordinate c)
Checks if extent contains Coordinate c |
boolean |
contains(KaboumExtent e)
Checks if currentExtent contains another extent e |
double |
dx()
Return the deltaX i.e. |
double |
dy()
Return the deltaY i.e. |
void |
expandToInclude(KaboumCoordinate p)
Enlarges the boundary of the Envelope so that it contains
(x,y). |
void |
expandToInclude(KaboumExtent other)
Enlarges the boundary of the Extent so that it contains
other . |
int |
getSizeInPixels(double d,
int width)
Return the equivalent size in pixel of a distance in map unit within a given size |
void |
init()
Initialize this extent |
boolean |
isNull()
Returns true if this Envelope is a "null"
extent. |
java.lang.String |
kaboumExternalString()
Return a string version of this extent in a Kaboum output readable format |
java.lang.String |
msString()
Return a string version of this extent in a mapserver cgi readable form |
boolean |
overlap(KaboumExtent e)
Checks if extent e overlap currentExtent |
void |
set(KaboumExtent e)
Set the extent e to the current Extent |
static void |
setPM(KaboumPrecisionModel _pm)
Set the precision model |
boolean |
trulyContains(KaboumCoordinate c)
Checks if extent truly contains coordinate c. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double xMin
public double yMin
public double xMax
public double yMax
public boolean zoomOnShapes
Constructor Detail |
---|
public KaboumExtent()
public KaboumExtent(double xMin, double yMin, double xMax, double yMax)
xMin
- Lower left X coordinateyMin
- Lower left Y coordinatexMax
- Upper right X coordinateyMax
- Upper right Y coordinatepublic KaboumExtent(KaboumCoordinate coordLL, KaboumCoordinate coordUR)
coordUL
- Lower left coordinatecoordUR
- Upper right coordinateMethod Detail |
---|
public void set(KaboumExtent e)
public boolean overlap(KaboumExtent e)
e
- Extent to check overlapping with the current onepublic boolean contains(KaboumExtent e)
e
- Extentpublic boolean contains(KaboumCoordinate c)
c
- coordinatepublic boolean trulyContains(KaboumCoordinate c)
c
- coordinatepublic double dx()
public double dy()
public int getSizeInPixels(double d, int width)
public void expandToInclude(KaboumCoordinate p)
Envelope
so that it contains
(x,y). Does nothing if (x,y) is already on or within the boundaries.
p
- input coordinatepublic void expandToInclude(KaboumExtent other)
Extent
so that it contains
other
. Does nothing if other
is wholly on or
within the boundaries.
other
- the Extent
to merge withpublic boolean isNull()
true
if this Envelope
is a "null"
extent.
true
if this Extent
is uninitializedpublic void init()
public java.lang.String kaboumExternalString()
public java.lang.String msString()
pm
- Precision Modelpublic static void setPM(KaboumPrecisionModel _pm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |