|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface StaticSelectionInterface
A selection is designated set of objects of a particular type. This set is defined as a range that starts at one object known as the "anchor" and extends to another object known as the "end".
Both the interpretation and composition of the range are up to the implementation. The range may be discrete (the set of integers) or continuous (the set of real numbers). The range may be linear (opposite end points of a line), rectangular (opposite corners of a rectangle), cubic (any two points on a cube), spherical (any two points on a sphere), etc. The range could be a set of cells, a set of columns, a set of numbers, a set of files, a set of paragraphs, etc.
StaticSelectionInterface provides methods for accessing the extent of a selection and for determining whether a given item is contained by a selection. SelectionInterface adds a method for changing the extent of a selection.
SelectionInterface,
Selection| Method Summary | |
|---|---|
abstract boolean |
contains(java.lang.Object item)
Test for the presence of an item in the selection. |
abstract java.lang.Object |
getAnchor()
Returns the object that defines the anchored or non-floating end of the selection. |
abstract java.lang.Object |
getEnd()
Returns the object that defines the unanchored or floating end of the selection. |
| Method Detail |
|---|
boolean contains(java.lang.Object item)
item - The item to search for.
java.lang.ClassCastException - In some implementations the items may be restricted to a
particular type.java.lang.Object getAnchor()
java.lang.Object getEnd()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||