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

ViewFragment (Editor Library) - NetBeans API Javadoc (Current Development Version)

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

org.netbeans.editor.view.spi
Interface ViewFragment


public interface ViewFragment

Interface describing a view being fragment of some original view.
It provides information that the fragment usually has to know anyway but that it's not available through the View class that the fragment is instance of.

The instances of this interface are created once fragments of a view have to created e.g. for line-wrapping purposes.
If the returned fragment does not implement this interface a default wrapper gets created.


Method Summary
 View getOriginalView()
          Return original view for which this wrapper is being created.
 int getRelativeEndOffset()
          Return relative ending offset against the starting offset of the original view.
 int getRelativeStartOffset()
          Return relative starting offset against the starting offset of the original view.
 

Method Detail

getOriginalView

View getOriginalView()
Return original view for which this wrapper is being created.


getRelativeStartOffset

int getRelativeStartOffset()
Return relative starting offset against the starting offset of the original view.


getRelativeEndOffset

int getRelativeEndOffset()
Return relative ending offset against the starting offset of the original view.


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.