Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.
Copyright © 2006 Sun Microsystems, Inc. All rights reserved.
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. |
getOffset
public int getOffset()
- Fetches the current offset within the document.
- Returns:
- the offset >= 0
Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.
For more information, please consult the JSR 209 specification.