|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.graphic.IlvTextSelection.Range
public static class IlvTextSelection.Range
This inner class is used to indicate the selection interval while editing a graphic
object implementing IlvTextInterface. The range might be empty
or collapsed, both have different means according to the using context.
| Field Summary | |
|---|---|
int |
from
The start index of the interval, must be less than or equal to the to parameter. |
int |
to
The end index of the interval, must be greater than or equal to the from parameter. |
| Constructor Summary | |
|---|---|
IlvTextSelection.Range()
Create an empty range. |
|
IlvTextSelection.Range(int index)
Creates a collapsed range. |
|
IlvTextSelection.Range(int from,
int to)
Create a range for the specified interval. |
|
| Method Summary | |
|---|---|
boolean |
isCollapsed()
Tells if the range is collapsed, that means the from and the
to index are the same. |
boolean |
isEmpty()
Tells if the range is empty, that means the interval is not valid. |
void |
setRange(IlvTextSelection.Range range)
Copies from another Range object. |
void |
setRange(int from,
int to)
Specifies the interval of the range. |
String |
toString()
Converts the range to a string, examples: [1:20], [4:4]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int from
to parameter.
public int to
from parameter.
| Constructor Detail |
|---|
public IlvTextSelection.Range()
public IlvTextSelection.Range(int from,
int to)
from - The start index of the interval, must be less than or equal to
the to parameter.to - The end index of the interval, must be greater than or equal to
the from parameter.public IlvTextSelection.Range(int index)
index - The start and the end index.| Method Detail |
|---|
public void setRange(int from,
int to)
from - The start index of the interval, should be less than or equal to
the to parameter.to - The end index of the interval, should be grater than or equal to
the from parameter.public void setRange(IlvTextSelection.Range range)
Range object.
range - The source Range object.public boolean isEmpty()
public boolean isCollapsed()
from and the
to index are the same.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||