org.das2.util.ObjectLocator

Keeps track of shapes and Objects located at each point, and can quickly find the closest. consider Use spheres of influence. Brute force implementation presently

ObjectLocator( )


addObject

addObject( java.awt.Shape bounds, Object object ) → void

Parameters

bounds - a Shape
object - an Object

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


closestObject

closestObject( java.awt.Point p ) → Object

Parameters

p - a Point

Returns:

java.lang.Object

[search for examples] [view on GitHub] [view on old javadoc] [view source]


closestShape

closestShape( java.awt.Point p ) → Shape

Parameters

p - a Point

Returns:

java.awt.Shape

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getObject

getObject( java.awt.Shape shape ) → Object

Parameters

shape - a Shape

Returns:

java.lang.Object

[search for examples] [view on GitHub] [view on old javadoc] [view source]


removeObject

removeObject( Object object ) → void

Parameters

object - an Object

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]