org.geotools.caching.spatialindex
Class Region

java.lang.Object
  extended by org.geotools.caching.spatialindex.Region
All Implemented Interfaces:
java.io.Serializable, Shape

public class Region
extends java.lang.Object
implements Shape, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Region()
           
Region(double[] pLow, double[] pHigh)
           
Region(Point low, Point high)
           
Region(Region r)
           
 
Method Summary
 java.lang.Object clone()
           
 Region combinedRegion(Region r)
           
static Region combinedRegion(Region[] pRegions)
           
static void combinedRegion(Region pToModify, Region pConst)
           
 boolean contains(Point p)
           
 boolean contains(Region r)
           
 boolean contains(Shape s)
           
 boolean equals(java.lang.Object o)
           
 double getArea()
           
 double[] getCenter()
           
 int getDimension()
           
 double getHigh(int index)
           
 double getIntersectingArea(Region r)
           
 double getLow(int index)
           
 double getMargin()
           
 Region getMBR()
           
 double getMinimumDistance(Point p)
           
 double getMinimumDistance(Region r)
           
 double getMinimumDistance(Shape s)
           
 int hashCode()
           
 boolean intersects(Region r)
           
 boolean intersects(Shape s)
           
 java.lang.String toString()
           
 boolean touches(Point p)
           
 boolean touches(Region r)
           
 boolean touches(Shape s)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Region

public Region()

Region

public Region(double[] pLow,
              double[] pHigh)

Region

public Region(Point low,
              Point high)

Region

public Region(Region r)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

intersects

public boolean intersects(Shape s)
Specified by:
intersects in interface Shape

contains

public boolean contains(Shape s)
Specified by:
contains in interface Shape

touches

public boolean touches(Shape s)
Specified by:
touches in interface Shape

getCenter

public double[] getCenter()
Specified by:
getCenter in interface Shape

getDimension

public int getDimension()
Specified by:
getDimension in interface Shape

getMBR

public Region getMBR()
Specified by:
getMBR in interface Shape

getArea

public double getArea()
Specified by:
getArea in interface Shape

getMinimumDistance

public double getMinimumDistance(Shape s)
Specified by:
getMinimumDistance in interface Shape

intersects

public boolean intersects(Region r)

contains

public boolean contains(Region r)

touches

public boolean touches(Region r)

getMinimumDistance

public double getMinimumDistance(Region r)

contains

public boolean contains(Point p)

touches

public boolean touches(Point p)

getMinimumDistance

public double getMinimumDistance(Point p)

getIntersectingArea

public double getIntersectingArea(Region r)

combinedRegion

public Region combinedRegion(Region r)

combinedRegion

public static Region combinedRegion(Region[] pRegions)

combinedRegion

public static void combinedRegion(Region pToModify,
                                  Region pConst)

getMargin

public double getMargin()

getLow

public double getLow(int index)
              throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

getHigh

public double getHigh(int index)
               throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.