javax.swing.text
Class GapContent.MarkData

java.lang.Object
  extended byjava.lang.ref.Reference
      extended byjava.lang.ref.WeakReference
          extended byjavax.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 Class Summary
 
Nested classes inherited from class java.lang.ref.Reference
 
Field Summary
(package private)  int index
           
 
Fields inherited from class java.lang.ref.Reference
 
Constructor Summary
(package private) GapContent.MarkData(int index)
           
(package private) GapContent.MarkData(int index, GapContent.StickyPosition position, ReferenceQueue queue)
           
 
Method Summary
 int getOffset()
          Fetch the location in the contiguous sequence being modeled.
(package private)  GapContent.StickyPosition getPosition()
           
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

int index
Constructor Detail

GapContent.MarkData

GapContent.MarkData(int index)

GapContent.MarkData

GapContent.MarkData(int index,
                    GapContent.StickyPosition position,
                    ReferenceQueue queue)
Method Detail

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