public final class HighlightsChangeEvent extends EventObject
HighlightsContainer
that fired the event.source
Constructor and Description |
---|
HighlightsChangeEvent(HighlightsContainer source,
int startOffset,
int endOffset)
Creates a new instance of
HighlightsChangeEvent . |
Modifier and Type | Method and Description |
---|---|
int |
getEndOffset()
Gets the end of an area in the document where highlighting has
changed.
|
int |
getStartOffset()
Gets the beginning of an area in the document where highlighting has
changed.
|
getSource, toString
public HighlightsChangeEvent(HighlightsContainer source, int startOffset, int endOffset)
HighlightsChangeEvent
. The
startOffset
and endOffset
parameters specify
the area of a document where highlighting has changed. It's possible to
use Integer.MAX_VALUE
for the endOffset
parameter
meaning that the end of the change is unknown or the change spans up to
the end of a document.source
- The highlight layer that fired this event.startOffset
- The beginning of the area that has changed.endOffset
- The end of the changed area.public int getStartOffset()
public int getEndOffset()
Integer.MAX_VALUE
if the ending position is unknown.