javax.swing.text
Interface Position

All Known Implementing Classes:
GapContent.StickyPosition, StringContent.StickyPosition

public interface Position

Represents a location within a document. It is intended to abstract away implementation details of the document and enable specification of positions within the document that are capable of tracking of change as the document is edited (i.e. offsets are fragile).

Author:
Timothy Prinzing

Nested Class Summary
static class Position.Bias
          A typesafe enumeration to indicate bias to a position in the model.
 
Method Summary
 int getOffset()
          Fetches the current offset within the document.
 

Method Detail

getOffset

public int getOffset()
Fetches the current offset within the document.

Returns:
the offset >= 0