org.netbeans.modules.editor.lib/1 1.43.0 9

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.43.0 9

Built on November 7 2009.  |  Portions Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.