|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextPieceSelectionStatus
TextPiece can have many small not overlapping selections within. Selection Intervals are within text piece, with end posibly one behind(0 <= start <= end < length). Every selection interval says what is selected - start and end are indexes of bounding characters start included, end not included in selection. Indexes are in rendered text or one behind.
Method Summary | |
---|---|
void |
addSelectionInterval(Interval interval)
Adds interval to selection. |
void |
clear()
Clears the selection |
List<Interval> |
getSelectionIntervals()
Returns selection that relates to this text piece. |
boolean |
isFullySelected()
Test if whole text is selected. |
boolean |
isPartlySelected()
Test if something is selected, but not everything |
void |
selectFull()
Select whole text of keeper. |
void |
setSelectionIntervals(Collection<Interval> intervals)
Sets what is selected |
void |
subtractSelectionInterval(Interval interval)
Subtracts interval from selection |
void |
xorSelectionIntervals(Collection<Interval> intervals)
Makes XOR with this new interval |
Method Detail |
---|
List<Interval> getSelectionIntervals()
boolean isPartlySelected()
true
, if something is selected, but it is not
fully selectedboolean isFullySelected()
true
, if whole ITextPieceKeeper is selectedvoid setSelectionIntervals(Collection<Interval> intervals)
intervals
- Collection of intervals, that are in range text and
are not overlapingvoid clear()
void selectFull()
void addSelectionInterval(Interval interval)
interval
- Interval to add to selectionvoid subtractSelectionInterval(Interval interval)
interval
- Interval to subtractvoid xorSelectionIntervals(Collection<Interval> intervals)
intervals
- Interval to XOR with others
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |