com.sas.models
Interface StaticSelectionInterface

All Known Subinterfaces:
SelectionInterface
All Known Implementing Classes:
CellSelection, CellVectorSelection, ColumnSelection, RowSelection, Selection

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.

See Also:
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

contains

boolean contains(java.lang.Object item)
Test for the presence of an item in the selection.

Parameters:
item - The item to search for.
Throws:
java.lang.ClassCastException - In some implementations the items may be restricted to a particular type.

getAnchor

java.lang.Object getAnchor()
Returns the object that defines the anchored or non-floating end of the selection.

Returns:
The value of the anchor property.

getEnd

java.lang.Object getEnd()
Returns the object that defines the unanchored or floating end of the selection.

Returns:
The value of the end property.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.