|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableSpacialIndex2D
A spacial index for objects in two dimensions, with support for insertions and deletions.
Method Summary | |
---|---|
boolean |
delete(int objKey)
Deletes the specified data entry from this structure. |
void |
empty()
Empties this structure of all entries. |
void |
insert(int objKey,
float xMin,
float yMin,
float xMax,
float yMax)
Inserts a new data entry into this structure; the entry's extents are specified by the input parameters. |
Methods inherited from interface cytoscape.geom.spacial.SpacialIndex2D |
---|
exists, queryOverlap, size |
Method Detail |
---|
void empty()
void insert(int objKey, float xMin, float yMin, float xMax, float yMax)
objKey
- a user-defined unique identifier used to refer to the entry
being inserted in later operations; this identifier must be
non-negative.xMin
- the minimum X coordinate of the entry's extents rectangle.yMin
- the minimum Y coordinate of the entry's extents rectangle.xMax
- the maximum X coordinate of the entry's extents rectangle.yMax
- the maximum Y coordinate of the entry's extents rectangle.
IllegalStateException
- if objKey is already used for an
existing entry in this structure.
IllegalArgumentException
- if objKey is negative,
if xMin is not less than or equal to xMax, or
if yMin is not less than or equal to yMax.boolean delete(int objKey)
objKey
- a user-defined identifier that was potentially used in a
previous insertion.
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |