|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.demo.Range
public class Range
The Range class is to be used in conjunction with bookmarks. It provides the means to detect selections and provides basic set operations
Constructor Summary | |
---|---|
Range(int start,
int end)
Creates a Range without an identifier |
|
Range(java.lang.String name,
int start,
int end)
Creates a range with a name and a start and end index |
Method Summary | |
---|---|
boolean |
contains(Range range)
Returns true if this range contains another range |
int |
getEnd()
gets the end of range |
java.lang.String |
getName()
gets an optional identifier. used for ids |
int |
getStart()
gets the start of range |
boolean |
match(Range range)
Returns true, if this range exactly matches the provided range |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Range(java.lang.String name, int start, int end)
name
- the name of this rangestart
- the start of this rangeend
- the end of this rangepublic Range(int start, int end)
start
- the start indexend
- the end indexMethod Detail |
---|
public java.lang.String getName()
public int getStart()
public int getEnd()
public boolean contains(Range range)
range
-
public boolean match(Range range)
range
-
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |