public interface HasOffset
extends java.io.Serializable
HasOffset
interface
carries char offset references to an original text String.Modifier and Type | Method and Description |
---|---|
int |
beginPosition()
Return the beginning char offset of the label (or -1 if none).
|
int |
endPosition()
Return the ending char offset of the label (or -1 if none).
|
void |
setBeginPosition(int beginPos)
Set the beginning character offset for the label.
|
void |
setEndPosition(int endPos)
Set the ending character offset of the label (or -1 if none).
|
int beginPosition()
void setBeginPosition(int beginPos)
beginPos
- The beginning positionint endPosition()
void setEndPosition(int endPos)
endPos
- The end character offset for the label