当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
GapBranchElement.LastIndex (Editor Utilities) - NetBeans API Javadoc (Current Development Version)
org.netbeans.lib.editor.util.swing
Class GapBranchElement.LastIndex
java.lang.Object
org.netbeans.lib.editor.util.swing.GapBranchElement.LastIndex
- Enclosing class:
- GapBranchElement
public abstract class GapBranchElement.LastIndex
- extends Object
Extension of GapBranchElement
that overrides getElementIndex(int)
which remembers the last returned element index.
Method Summary |
int |
getElementIndex(int offset)
Implementation that remembers the last returned element index
and checks the element at the last index when next called. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GapBranchElement.LastIndex
public GapBranchElement.LastIndex()
getElementIndex
public int getElementIndex(int offset)
- Implementation that remembers the last returned element index
and checks the element at the last index when next called.
This may improve performance if there are typically many repetitive calls
with offset values hitting the last returned element index.