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

FinderFactory.BlocksFinder (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Interface FinderFactory.BlocksFinder

All Superinterfaces:
Finder
All Known Implementing Classes:
ExtFinderFactory.LineBlocksFinder, FinderFactory.AbstractBlocksFinder, FinderFactory.FalseBlocksFinder, FinderFactory.StringBlocksFinder, FinderFactory.WholeWordsBlocksFinder
Enclosing class:
FinderFactory

public static interface FinderFactory.BlocksFinder
extends Finder

Finder that constructs [begin-pos, end-pos] blocks. This is useful for highlight-search draw layer. The block-finders are always forward-search finders.


Method Summary
 int[] getBlocks()
          Get the array filled with position blocks.
 void setBlocks(int[] blocks)
          Set the array into which the finder puts the position blocks.
 
Methods inherited from interface org.netbeans.editor.Finder
find, isFound, reset
 

Method Detail

setBlocks

void setBlocks(int[] blocks)
Set the array into which the finder puts the position blocks. If the length of array is not sufficient the finder extends the array. The last block is set to [-1, -1].


getBlocks

int[] getBlocks()
Get the array filled with position blocks. It is either original array passed to setBlocks() or the new array if the finder extended the array.


org.netbeans.modules.editor.lib/1 1.14.0 3

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