edu.umd.cs.findbugs.sourceViewer

Class NavigableTextPane

public class NavigableTextPane extends JTextPane

Author: tuc

Nested Class Summary
static classNavigableTextPane.DistanceComparator
Constructor Summary
NavigableTextPane()
NavigableTextPane(StyledDocument doc)
Method Summary
intgetLineOffset(int line)
voidscrollLinesToVisible(int startLine, int endLine, Collection<Integer> otherLines)
scroll the specified primary lines into view, along with as many of the other lines as is convenient
voidscrollLineToVisible(int line, int margin)
scroll the specified line into view, with a margin of 'margin' pixels above and below
voidscrollLineToVisible(int line)
scroll the specified line into the middle third of the view

Constructor Detail

NavigableTextPane

public NavigableTextPane()

NavigableTextPane

public NavigableTextPane(StyledDocument doc)

Method Detail

getLineOffset

public int getLineOffset(int line)

scrollLinesToVisible

public void scrollLinesToVisible(int startLine, int endLine, Collection<Integer> otherLines)
scroll the specified primary lines into view, along with as many of the other lines as is convenient

scrollLineToVisible

public void scrollLineToVisible(int line, int margin)
scroll the specified line into view, with a margin of 'margin' pixels above and below

scrollLineToVisible

public void scrollLineToVisible(int line)
scroll the specified line into the middle third of the view
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.