JIDE 3.5.15

com.jidesoft.editor
Interface Span

All Known Subinterfaces:
FoldingSpan
All Known Implementing Classes:
DefaultFoldingSpan, DefaultSpan

public interface Span

An interface to represent a span of text in the document.


Method Summary
 int getEndOffset()
          Gets the end offset of the span, which is exclusive.
 int getStartOffset()
          Gets the start offset of the span, which is inclusive.
 boolean isValid()
          Checks if the span is valid.
 

Method Detail

getStartOffset

int getStartOffset()
Gets the start offset of the span, which is inclusive.

Returns:
the start offset of the span.

getEndOffset

int getEndOffset()
Gets the end offset of the span, which is exclusive.

Returns:
the end offset of the span.

isValid

boolean isValid()
Checks if the span is valid.

Returns:
true if the span is valid.

JIDE 3.5.15