JSR-209 (Final Release)

javax.swing.text
Interface Position


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).


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

JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.