JIDE 3.5.15

com.jidesoft.editor
Class DefaultSpan

java.lang.Object
  extended by com.jidesoft.editor.DefaultSpan
All Implemented Interfaces:
Span
Direct Known Subclasses:
DefaultFoldingSpan

public class DefaultSpan
extends Object
implements Span

Default implementation of the interface Span.


Constructor Summary
DefaultSpan(int startOffset, int endOffset)
           
 
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.
 void setEndOffset(int endOffset)
           
 void setStartOffset(int startOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSpan

public DefaultSpan(int startOffset,
                   int endOffset)
Method Detail

getStartOffset

public int getStartOffset()
Description copied from interface: Span
Gets the start offset of the span, which is inclusive.

Specified by:
getStartOffset in interface Span
Returns:
the start offset of the span.

setStartOffset

public void setStartOffset(int startOffset)

getEndOffset

public int getEndOffset()
Description copied from interface: Span
Gets the end offset of the span, which is exclusive.

Specified by:
getEndOffset in interface Span
Returns:
the end offset of the span.

setEndOffset

public void setEndOffset(int endOffset)

isValid

public boolean isValid()
Description copied from interface: Span
Checks if the span is valid.

Specified by:
isValid in interface Span
Returns:
true if the span is valid.

JIDE 3.5.15