|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.annotation.wordfreak.AnnotationSelection
This class represents the current selection and allows for multiple regions to be selected simultaniously.
Constructor Summary | |
AnnotationSelection()
Creates a new annotation selection with no selected regions. |
|
AnnotationSelection(java.util.List region)
Creates a new annotation selection with the specified region. |
Method Summary | |
void |
addAll(AnnotationSelection annotationSelection)
Adds each region in the specified annotation selection to this selection. |
int |
addRegionToSelection(java.util.List region)
Adds the specfied region to this selection. |
void |
addToRegion(java.lang.Object regionObject)
Adds the specified object ot the current region or creates a region if no region exisits. |
void |
clear()
Removes all regions from this selection. |
java.lang.Object |
get(int index)
Returns the region object in the selection specified by the given index. |
java.util.List |
getCurrentRegion()
Returns the current region. |
int |
getCurrentRegionIndex()
Returns the index of the current region. |
java.util.List |
getFirstRegion()
Returns the left most region |
java.util.List |
getLastRegion()
Returns the left most region |
int |
getNumberOfRegions()
Returns the number of regions in this selection. |
java.util.List |
getRegion(int n)
Returns the region specified by the given index. |
int |
newRegion(java.lang.Object regionObject)
Creates a new region using the specified object and adds it to this selection. |
void |
removeRegion(int regionIndex)
Removed the region specified by the give index. |
int |
size()
Returns the number of region objects in the entire selection. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AnnotationSelection()
public AnnotationSelection(java.util.List region)
region
- The initial region in the selection.Method Detail |
public int newRegion(java.lang.Object regionObject)
regionObject
- An object to be placed in the new region.
public void addToRegion(java.lang.Object regionObject)
regionObject
- An object to be added to the current region.public int addRegionToSelection(java.util.List region)
region
- The region to be added to this selection.
public void removeRegion(int regionIndex)
regionIndex
- The index of the region to be removed.public int getNumberOfRegions()
public java.util.List getCurrentRegion()
public int getCurrentRegionIndex()
public java.util.List getRegion(int n)
n
- The region index to be returned.
public java.util.List getFirstRegion()
public java.util.List getLastRegion()
public void addAll(AnnotationSelection annotationSelection)
annotationSelection
- The annotation selection to add this this selction.public void clear()
public int size()
public java.lang.Object get(int index)
index
- The index of the region object to be returned.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |