public class TextSelection.Spans extends Object implements Iterable<TextSelection.Span>
| Constructor and Description | 
|---|
Spans()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(TextSelection.Span span)
Adds the given span to the collection, if it is non-empty. 
 | 
void | 
add(TextSelection.Spans spans)
Adds all of the non-empty spans in the given spans collection to the current
 spans collection. 
 | 
TextSelection.Char | 
charAt(int x,
      int y)  | 
void | 
clear()
Removes all spans. 
 | 
TextSelection.Span | 
first()
Gets the first span in the collection. 
 | 
TextSelection.Spans | 
getIntersection(Rectangle bounds,
               boolean b)  | 
String | 
getText()
Gets the text contained in this spans collection. 
 | 
boolean | 
isEmpty()  | 
Iterator<TextSelection.Span> | 
iterator()
Returns an  
Iterator for the elements in this object. | 
TextSelection.Span | 
last()
Gets the last span in the collection. 
 | 
TextSelection.Span | 
spanOfCharAt(int x,
            int y)  | 
String | 
toString()
Returns a string representation of the object. 
 | 
public Iterator<TextSelection.Span> iterator()
IterableIterator for the elements in this object.iterator in interface Iterable<TextSelection.Span>Iterator instance.public void add(TextSelection.Spans spans)
spans - public void clear()
public void add(TextSelection.Span span)
span - public TextSelection.Span first()
public TextSelection.Span last()
public String getText()
public String toString()
Objectpublic TextSelection.Spans getIntersection(Rectangle bounds, boolean b)
public boolean isEmpty()
public TextSelection.Char charAt(int x, int y)
public TextSelection.Span spanOfCharAt(int x, int y)