|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface describing an object in a spatial search tree.
| Method Summary | |
double |
computeDistanceTo(int[] point)
Computes the distance to a given point. |
boolean |
contains(MBR rect)
Tests whether the object contains a given rectangle or not. |
void |
draw(java.awt.Graphics g,
int scale)
Draws the object. |
long |
getId()
Returns the identifier of the object. |
boolean |
intersects(MBR r)
Tests whether the object intersects a given rectangle. |
boolean |
intersects(java.lang.Object obj)
Tests whether the object intersects another object. |
boolean |
isContainedBy(MBR rect)
Tests whether the object is contained by a given rectangle or not. |
boolean |
isContainedBy(SpatialSearchTreeEntry entry)
Tests whether the object is contained by a given entry or not. |
boolean |
isOfSameType(SpatialSearchTreeObject obj)
Tests whether the object is of the same type as the given object or not. |
| Methods inherited from interface spatial.SpatialSearchTreeEntry |
getMBR, getNumOfDimensions |
| Method Detail |
public double computeDistanceTo(int[] point)
point - coordinates of the point
public boolean contains(MBR rect)
rect - the rectangle
public void draw(java.awt.Graphics g,
int scale)
g - graphic contextscale - the current scalepublic long getId()
public boolean intersects(java.lang.Object obj)
obj - the object
public boolean intersects(MBR r)
r - the rectangle
public boolean isContainedBy(MBR rect)
rect - the rectangle
public boolean isContainedBy(SpatialSearchTreeEntry entry)
entry - the entry
public boolean isOfSameType(SpatialSearchTreeObject obj)
obj - the other object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||