A C D E F G I M N P R S T U

A

add(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Computes the union of this rectangle and the passed rectangle, storing the result in this rectangle.
add(Rectangle, int) - Method in interface com.infomatiq.jsi.SpatialIndex
Adds a new rectangle to the spatial index
add(Rectangle, int) - Method in class com.infomatiq.jsi.rtree.RTree
 
area() - Method in class com.infomatiq.jsi.Rectangle
Compute the area of this rectangle.

C

com.infomatiq.jsi - package com.infomatiq.jsi
 
com.infomatiq.jsi.rtree - package com.infomatiq.jsi.rtree
 
containedBy(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Determine whether this rectangle is contained by the passed rectangle
contains(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Determine whether this rectangle contains the passed rectangle
contains(Rectangle, IntProcedure) - Method in interface com.infomatiq.jsi.SpatialIndex
Finds all rectangles contained by the passed rectangle.
contains(Rectangle, IntProcedure) - Method in class com.infomatiq.jsi.rtree.RTree
 
coordinates - Variable in class com.infomatiq.jsi.Point
The (x, y) coordinates of the point.
copy() - Method in class com.infomatiq.jsi.Rectangle
Make a copy of this rectangle

D

delete(Rectangle, int) - Method in interface com.infomatiq.jsi.SpatialIndex
Deletes a rectangle from the spatial index
delete(Rectangle, int) - Method in class com.infomatiq.jsi.rtree.RTree
 
DIMENSIONS - Static variable in class com.infomatiq.jsi.Rectangle
Number of dimensions in a rectangle.
distance(Point) - Method in class com.infomatiq.jsi.Rectangle
Return the distance between this rectangle and the passed point.
distance(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Return the distance between this rectangle and the passed rectangle.

E

edgeOverlaps(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Determine whether an edge of this rectangle overlies the equivalent edge of the passed rectangle
enlargement(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Calculate the area by which this rectangle would be enlarged if added to the passed rectangle.
equals(Object) - Method in class com.infomatiq.jsi.Rectangle
Determine whether this rectangle is equal to a given object.
execute(int) - Method in interface com.infomatiq.jsi.IntProcedure
 

F

furthestDistance(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Return the furthst possible distance between this rectangle and the passed rectangle.

G

getVersion() - Method in interface com.infomatiq.jsi.SpatialIndex
Returns a string identifying the type of spatial index, and the version number, eg "SimpleIndex-1.0b1"
getVersion() - Method in class com.infomatiq.jsi.rtree.RTree
 

I

init(Properties) - Method in interface com.infomatiq.jsi.SpatialIndex
Initializes any implementation dependent properties of the spatial index.
init(Properties) - Method in class com.infomatiq.jsi.rtree.RTree
Initialize implementation dependent properties of the RTree.
intersects(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Determine whether this rectangle intersects the passed rectangle
intersects(Rectangle, IntProcedure) - Method in interface com.infomatiq.jsi.SpatialIndex
Finds all rectangles that intersect the passed rectangle.
intersects(Rectangle, IntProcedure) - Method in class com.infomatiq.jsi.rtree.RTree
 
IntProcedure - interface com.infomatiq.jsi.IntProcedure.
Interface that defines a procedure to be executed, that takes an int parameter

M

max - Variable in class com.infomatiq.jsi.Rectangle
array containing the minimum value for each dimension; ie { min(x), min(y) }
min - Variable in class com.infomatiq.jsi.Rectangle
array containing the maximum value for each dimension; ie { max(x), max(y) }

N

nearest(Point, IntProcedure, float) - Method in interface com.infomatiq.jsi.SpatialIndex
Finds all rectangles that are nearest to the passed rectangle, and calls execute() on the passed IntProcedure for each one.
nearest(Point, IntProcedure, float) - Method in class com.infomatiq.jsi.rtree.RTree
 
Node - class com.infomatiq.jsi.rtree.Node.
Used by RTree.

P

Point - class com.infomatiq.jsi.Point.
Currently hardcoded to 2 dimensions, but could be extended.
Point(float, float) - Constructor for class com.infomatiq.jsi.Point
Constructor.

R

Rectangle - class com.infomatiq.jsi.Rectangle.
Currently hardcoded to 2 dimensions, but could be extended.
Rectangle(float[], float[]) - Constructor for class com.infomatiq.jsi.Rectangle
Constructor.
Rectangle(float, float, float, float) - Constructor for class com.infomatiq.jsi.Rectangle
Constructor.
RTree - class com.infomatiq.jsi.rtree.RTree.
This is a lightweight RTree implementation, specifically designed for the following features (in order of importance): Fast intersection query performance.
RTree() - Constructor for class com.infomatiq.jsi.rtree.RTree
Constructor.

S

sameObject(Object) - Method in class com.infomatiq.jsi.Rectangle
Determine whether this rectangle is the same as another object Note that two rectangles can be equal but not the same object, if they both have the same bounds.
set(float[], float[]) - Method in class com.infomatiq.jsi.Rectangle
Sets the size of the rectangle.
set(float, float, float, float) - Method in class com.infomatiq.jsi.Rectangle
Sets the size of the rectangle.
size() - Method in interface com.infomatiq.jsi.SpatialIndex
Returns the number of entries in the spatial index
size() - Method in class com.infomatiq.jsi.rtree.RTree
 
SpatialIndex - interface com.infomatiq.jsi.SpatialIndex.
Defines methods that must be implemented by all spatial indexes.

T

toString() - Method in class com.infomatiq.jsi.Rectangle
Return a string representation of this rectangle, in the form: (1.2, 3.4), (5.6, 7.8)

U

union(Rectangle) - Method in class com.infomatiq.jsi.Rectangle
Find the the union of this rectangle and the passed rectangle.

A C D E F G I M N P R S T U