Home » openjdk-7 » javax » swing » text » [javadoc | source]
final class: GapContent.MarkData [javadoc | source]
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.
Field Summary
 int index     
Fields inherited from java.lang.ref.Reference:
queue,  next
 MarkData(int index) 
 MarkData(int index,
    StickyPosition position,
    ReferenceQueue<StickyPosition> queue) 
Method from javax.swing.text.GapContent$MarkData Summary:
getOffset,   getPosition
Methods from java.lang.ref.Reference:
clear,   enqueue,   get,   isEnqueued
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.GapContent$MarkData Detail:
 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.
 StickyPosition getPosition()