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

LogicalLineVisitor (Terminal Emulator) - NetBeans API Javadoc (Current Development Version)

org.netbeans.lib.terminalemulator 1.2

org.netbeans.lib.terminalemulator
Interface LogicalLineVisitor


public interface LogicalLineVisitor

Passed to one of visitLogicalLines() or reverseVisitLogicalLines().


Method Summary
 boolean visit(int line, Coord begin, Coord end, String text)
          Called for each logical line.
 

Method Detail

visit

boolean visit(int line,
              Coord begin,
              Coord end,
              String text)
Called for each logical line.

'text' contains the actual text of a complete line which may be wrapped multiple times. 'begin' and 'end' mark the region.

Note that for the first line 'begin' will match the 'begin' passed to visitLogicalLines(), so watch out if you specify a visitation range that starts in the middle of a line.

Normally end.row == begin.row, but if the logical line was wrapped, end.row > begin.row.

'line' is intended to represent a line number, however if the visitation range isn't the whole document it should be interpreted only as a serial number and in the case of reverseVisitLogicalLines() the sequence of line numbers will be backwards.

If you locate something in 'text' and need to convert it back to a Coord use extentInLogicalLine().


org.netbeans.lib.terminalemulator 1.2

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