javax.swing.text
Class GapContent.MarkData
java.lang.Object
java.lang.ref.Reference
java.lang.ref.WeakReference
javax.swing.text.GapContent.MarkData
- Enclosing class:
- GapContent
- final class GapContent.MarkData
- extends WeakReference
Holds the data for a mark... separately from
the real mark so that the real mark (Position
that the caller of createPosition holds) can be
collected if there are no more references to
it. The update table holds only a reference
to this data.
Nested classes inherited from class java.lang.ref.Reference |
|
Field Summary |
(package private) int |
index
|
Fields inherited from class java.lang.ref.Reference |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
int index
GapContent.MarkData
GapContent.MarkData(int index)
GapContent.MarkData
GapContent.MarkData(int index,
GapContent.StickyPosition position,
ReferenceQueue queue)
getOffset
public final int getOffset()
- Fetch the location in the contiguous sequence
being modeled. The index in the gap array
is held by the mark, so it is adjusted according
to it's relationship to the gap.
getPosition
GapContent.StickyPosition getPosition()