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() |
TextSelection.Span |
last()
Gets the last span in the collection.
|
TextSelection.Span |
spanOfCharAt(int x,
int y) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Iterator<TextSelection.Span> iterator()
iterator in interface Iterable<TextSelection.Span>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 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)
Copyright © 2023. All rights reserved.