站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

GapBranchElement.LastIndex (Editor Utilities) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.util/1 1.17

org.netbeans.lib.editor.util.swing
Class GapBranchElement.LastIndex

java.lang.Object
  extended by 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.


Constructor Summary
GapBranchElement.LastIndex()
           
 
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
 

Constructor Detail

GapBranchElement.LastIndex

public GapBranchElement.LastIndex()
Method Detail

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.


org.netbeans.modules.editor.util/1 1.17

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.